diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-26 03:42:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-26 03:42:03 +0100 |
commit | 5a0f6033bed4c499f0b720e85f87ef9e46c5017e (patch) | |
tree | d761e0007890c0c401a7a82af858769a0ba8687a /src/libsystemd-bus | |
parent | b56c267ffbd3a5598dfa1dba5e6a51b38fcaed57 (diff) |
bus: fix missing variable initialization
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r-- | src/libsystemd-bus/sd-bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index c82b738e02..5f2ede088a 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] */ |