From: Zbigniew Jędrzejewski-Szmek Date: Mon, 11 Jan 2016 19:37:30 +0000 (-0500) Subject: core/dbus-execute: do not needlessly compare strings again X-Git-Tag: v231~768^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb51e6b73439271eba6d9f1715fedb2305a04518;p=platform%2Fupstream%2Fsystemd.git 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. --- diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index a38ba49..eae0808 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) {