summaryrefslogtreecommitdiff
path: root/server/uloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/uloc.c')
-rw-r--r--server/uloc.c4
1 files changed, 2 insertions, 2 deletions
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,