summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-01-11 14:37:30 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-01-18 15:09:36 -0500
commitcb51e6b73439271eba6d9f1715fedb2305a04518 (patch)
tree0686b03f370693d66ba7ecadcb6f88b3621b94e4 /src
parent5cb06d0cb54459c0e4df932e8b676cf2cdc0340f (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/dbus-execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
index a38ba494e7..eae0808f9e 100644
--- a/src/core/dbus-execute.c
+++ b/src/core/dbus-execute.c
@@ -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) {