summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
Diffstat (limited to 'bus')
-rw-r--r--bus/bus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bus/bus.c b/bus/bus.c
index 6da13e48..de880cfe 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -732,7 +732,10 @@ bus_context_new (const DBusString *config_file,
}
if (parser != NULL)
- bus_config_parser_unref (parser);
+ {
+ bus_config_parser_unref (parser);
+ parser = NULL;
+ }
/* Here we change our credentials if required,
* as soon as we've set up our sockets and pidfile