From: Lennart Poettering Date: Tue, 26 Mar 2013 02:42:03 +0000 (+0100) Subject: bus: fix missing variable initialization X-Git-Tag: v199~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5a0f6033bed4c499f0b720e85f87ef9e46c5017e;p=elogind.git bus: fix missing variable initialization --- diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index c82b738e0..5f2ede088 100644 --- a/src/libsystemd-bus/sd-bus.c +++ b/src/libsystemd-bus/sd-bus.c @@ -539,8 +539,10 @@ static int parse_exec_address(sd_bus *b, const char **p, char **guid) { skip_address_key(p); } - if (!path) + if (!path) { + r = -EINVAL; goto fail; + } /* Make sure there are no holes in the array, with the * exception of argv[0] */