summaryrefslogtreecommitdiffstats
path: root/src/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/run.c b/src/run.c
index abe968f..bdf6b0b 100644
--- a/src/run.c
+++ b/src/run.c
@@ -116,7 +116,7 @@ init(void)
/* local UNIX socket */
STATE(local) = local_server_create(&CONFIG(local));
- if (!STATE(local)) {
+ if (STATE(local) == -1) {
dlog(LOG_ERR, "can't open unix socket!");
return -1;
}