chiark / gitweb /
make: build internal tools against libudev-private.la
[elogind.git] / extras / udev-acl / udev-acl.c
index ec95025eb301b15d5ce8bacd8e03c4b93fc6c027..3eb29fe2f28951bb5ba91f527dcbd0d9472b1537 100644 (file)
@@ -159,7 +159,7 @@ static int consolekit_called(const char *action, uid_t *uid, const char **own_se
        const char *s;
        const char *session;
 
-       if (strcmp(action, "session_active_changed") != 0)
+       if (action == NULL || strcmp(action, "session_active_changed") != 0)
                return -1;
 
        s = getenv("CK_SESSION_IS_LOCAL");