diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/udev-acl/udev-acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/udev-acl/udev-acl.c b/extras/udev-acl/udev-acl.c index ec95025eb3..3eb29fe2f2 100644 --- a/extras/udev-acl/udev-acl.c +++ b/extras/udev-acl/udev-acl.c @@ -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"); |