summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-26 03:42:03 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-26 03:42:03 +0100
commit5a0f6033bed4c499f0b720e85f87ef9e46c5017e (patch)
treed761e0007890c0c401a7a82af858769a0ba8687a /src/libsystemd-bus
parentb56c267ffbd3a5598dfa1dba5e6a51b38fcaed57 (diff)
bus: fix missing variable initialization
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/sd-bus.c4
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] */