]> code.citadel.org Git - citadel.git/blobdiff - citadel/sysdep.c
Trust the compiler to do short-circuit evaluation.
[citadel.git] / citadel / sysdep.c
index 2114fb0e1a1f2150be3c8267626d659d92991c85..be5ca2b9498be56e4e431cd3da0d5806d3476519 100644 (file)
@@ -380,7 +380,7 @@ int ig_uds_server(char *sockpath, int queue_len, char **errormessage)
        if (actual_queue_len < 5) actual_queue_len = 5;
 
        i = unlink(sockpath);
-       if (i != 0) if (errno != ENOENT) {
+       if ((i != 0) && (errno != ENOENT)) {
                *errormessage = (char*) malloc(SIZ + 1);
                snprintf(*errormessage, SIZ, "citserver: can't unlink %s: %s",
                        sockpath, strerror(errno));