main-afb-daemon: Export API after initialization
[src/app-framework-binder.git] / src / afb-socket.c
index ebbc58e..77b5edf 100644 (file)
@@ -217,7 +217,7 @@ static int open_systemd(const char *spec)
 {
 #if defined(NO_SYSTEMD_ACTIVATION)
        errno = EAFNOSUPPORT;
-       fd = -1;
+       return -1;
 #else
        return afb_systemd_fds_for(spec);
 #endif