Trust the compiler to do short-circuit evaluation.
[citadel.git] / webcit / useredit.c
index 2446b3c2e9153964b22bbaf06ec291eedd8d2ca1..9e2babafacbf8451b20ee9f535ffffaf469906b1 100644 (file)
@@ -496,7 +496,7 @@ TRYAGAIN:
        }
 
        /** If there's no vcard, create one */
-       if (vcard_msgnum < 0) if (already_tried_creating_one == 0) {
+       if ((vcard_msgnum < 0) && (already_tried_creating_one == 0)) {
                already_tried_creating_one = 1;
                serv_puts("ENT0 1|||4");
                serv_getln(buf, sizeof buf);