diff options
Diffstat (limited to 'usr/src/lib/libc/port/gen/getutx.c')
-rw-r--r-- | usr/src/lib/libc/port/gen/getutx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libc/port/gen/getutx.c b/usr/src/lib/libc/port/gen/getutx.c index 71b8364600..63decba9b7 100644 --- a/usr/src/lib/libc/port/gen/getutx.c +++ b/usr/src/lib/libc/port/gen/getutx.c @@ -925,7 +925,7 @@ modutx(const struct utmpx *utp) */ (void) memcpy(&utmp, utp, sizeof (utmp)); setutxent(); - while (fup = getutxent_frec()) { + while ((fup = getutxent_frec()) != NULL) { if (idcmp(ucp->ut_id, fup->ut_id)) continue; @@ -1166,7 +1166,7 @@ makeutx(const struct utmpx *utmp) */ (void) memset(saveid, falphanum, IDLEN); - while (ut = getoneutx(&offset)) + while ((ut = getoneutx(&offset)) != NULL) if (idcmp(utmp->ut_id, ut->ut_id)) { continue; } else { |