diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-12-04 00:23:27 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-12-04 00:24:44 +0100 |
commit | d2df88ffbac8858214adb9daaf7a93122fe26a50 (patch) | |
tree | f0e54d27e8d62577014a8f76add358be834f8375 | |
parent | 652212b0c2b60b9ef9b2e24eae82401f880fa21a (diff) |
sd-bus: avoid a null dereference
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index ff01d608c5..ef0b15185f 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -3400,7 +3400,7 @@ _public_ int sd_bus_get_scope(sd_bus *bus, const char **scope) { } dash = strchr(n, '-'); - if (streq(dash, "-user")) { + if (streq_ptr(dash, "-user")) { *scope = "user"; return 0; } |