1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-10 16:58:28 +03:00

sd-bus: avoid a null dereference

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-12-04 00:23:27 +01:00
parent 652212b0c2
commit d2df88ffba

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;
}