Fix of terminate problem while loading user list
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 17 Apr 2011 21:21:41 +0000 (21:21 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 20:12:39 +0000 (20:12 +0000)
webcit/useredit.c

index c76188b4e1e0930bcb39fc44bd46b4040f14583b..0f77cb2b58d93d8e66259aeaaff15f7c4cc55f9d 100644 (file)
@@ -271,7 +271,7 @@ HashList *iterate_load_userlist(StrBuf *Target, WCTemplputParams *TP)
                        len = StrBuf_ServGetln(Buf);
                        if ((len <0) || 
                            ((len == 3) &&
-                            strcmp(ChrPtr(Buf), "000")))
+                            !strcmp(ChrPtr(Buf), "000")))
                        {
                                Done = 1;
                                break;