summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-12-04 00:23:27 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-12-04 00:24:44 +0100
commitd2df88ffbac8858214adb9daaf7a93122fe26a50 (patch)
treef0e54d27e8d62577014a8f76add358be834f8375 /src/libsystemd/sd-bus
parent652212b0c2b60b9ef9b2e24eae82401f880fa21a (diff)
sd-bus: avoid a null dereference
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/sd-bus.c2
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;
}