chiark / gitweb /
[PATCH] add documentation about the BUS key being optional for the LABEL rule.
[elogind.git] / udev.c
diff --git a/udev.c b/udev.c
index ac29ec6f4424909fcd9799ec1db1fbeb3dc421ce..71c5f1fba538f33043495d231650722db7992e09 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -119,7 +119,7 @@ int main(int argc, char **argv, char **envp)
        retval = udevdb_init(UDEVDB_DEFAULT);
        if (retval != 0) {
                dbg("unable to initialize database");
-               goto exit;
+               goto exit_sysbus;
        }
 
        /* initialize the naming deamon */
@@ -137,6 +137,7 @@ int main(int argc, char **argv, char **envp)
        }
        udevdb_exit();
 
+exit_sysbus:
        /* disconnect from the system message bus */
        sysbus_disconnect();