projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Trust the compiler to do short-circuit evaluation.
[citadel.git]
/
webcit
/
webserver.c
diff --git
a/webcit/webserver.c
b/webcit/webserver.c
index 5c328b189160b2e14f0af123df436b4094922557..ce9affa28e289975264a3c3b3adfd9870bd0ea10 100644
(file)
--- a/
webcit/webserver.c
+++ b/
webcit/webserver.c
@@
-147,7
+147,7
@@
int ig_uds_server(char *sockpath, int queue_len)
if (actual_queue_len < 5) actual_queue_len = 5;
i = unlink(sockpath);
- if (
i != 0) if (errno != ENOENT
) {
+ if (
(i != 0) && (errno != ENOENT)
) {
lprintf(1, "webcit: can't unlink %s: %s\n",
sockpath, strerror(errno));
exit(WC_EXIT_BIND);