From 5a0f6033bed4c499f0b720e85f87ef9e46c5017e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 26 Mar 2013 03:42:03 +0100 Subject: [PATCH] bus: fix missing variable initialization --- src/libsystemd-bus/sd-bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] */ -- 2.30.2