From 045924807edb845bc6268acd14591d00b690e8bd Mon Sep 17 00:00:00 2001 From: Lucien Van Elsen Date: Fri, 14 Aug 1992 08:11:48 +0000 Subject: saber complains about pure assignment statements in ifs- --- server/uloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/uloc.c') diff --git a/server/uloc.c b/server/uloc.c index 55140c0..e2f3a5e 100644 --- a/server/uloc.c +++ b/server/uloc.c @@ -625,7 +625,7 @@ ulogin_add_user(notice, exposure, who) (int) exposure)); #endif - if (oldlocs = ulogin_find(notice,1)) { + if ((oldlocs = ulogin_find(notice,1)) != NULLZLT) { #if 0 zdbug((LOG_DEBUG,"ul_add: already here")); #endif @@ -813,7 +813,7 @@ ulogin_find(notice, strict) rlo = 0; rhi = num_locs - 1; /* first index is 0 */ - while (compar = comp_zstring(locations[i].zlt_user, inst)) { + while ((compar = comp_zstring(locations[i].zlt_user, inst)) != 0) { #if 0 zdbug ((LOG_DEBUG, "ulogin_find: comparing %s %s %s %d %d", notice->z_class_inst, -- cgit v1.2.3