Fix of terminate problem while loading user list
[citadel.git] / webcit / useredit.c
index a95670a8024da8946eddcdae3a167a26c176be67..0bfc7ff37aee24f4cee429df3c2e82a050fdba4a 100644 (file)
@@ -274,7 +274,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;