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:
parent
652212b0c2
commit
d2df88ffba
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user