sd-bus: avoid a null dereference

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-12-04 00:24:44 +01:00
parent 652212b0c2
commit d2df88ffba
+1 -1
View File
@@ -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;
}