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:
Zbigniew Jędrzejewski-Szmek 2016-01-11 14:37:30 -05:00
parent 5cb06d0cb5
commit cb51e6b734

View file

@ -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) {