chiark / gitweb /
bus: fix missing variable initialization
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Mar 2013 02:42:03 +0000 (03:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Mar 2013 02:42:03 +0000 (03:42 +0100)
src/libsystemd-bus/sd-bus.c

index c82b738e028be9aa3d44a1c0ca0e1a553fff2f8f..5f2ede088a32bcb471edc232af62a2561d7804be 100644 (file)
@@ -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] */