diff options
-rw-r--r-- | libexec/getty/subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index b8f359355afc..9958d193aa60 100644 --- a/libexec/getty/subr.c +++ b/libexec/getty/subr.c @@ -564,8 +564,8 @@ makeenv(char *env[]) strlcat(termbuf, TT, sizeof(termbuf)); *ep++ = termbuf; } - if (EV) { - p = EV; + if ((p = EV)) { + q = p; while ((q = strchr(q, ','))) { *q++ = '\0'; *ep++ = p; |