core/dbus-execute: do not needlessly compare strings again
gcc complains that dirs might be unitialized. It cannot, but we just checked that name has one of three values above, so no need to check again.
This commit is contained in:
parent
5cb06d0cb5
commit
cb51e6b734
|
@ -1382,7 +1382,7 @@ int bus_exec_context_set_transient_property(
|
|||
dirs = &c->read_write_dirs;
|
||||
else if (streq(name, "ReadOnlyDirectories"))
|
||||
dirs = &c->read_only_dirs;
|
||||
else if (streq(name, "InaccessibleDirectories"))
|
||||
else /* "InaccessibleDirectories" */
|
||||
dirs = &c->inaccessible_dirs;
|
||||
|
||||
if (strv_length(l) == 0) {
|
||||
|
|
Loading…
Reference in a new issue