summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-04-26 14:43:40 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-04-26 14:45:49 +0200
commit5921fc3cc36df4baa5e16060e7675ace9eda2bef (patch)
tree88c43fb50ebbbfa55fd5ad85350b66e0b86f8fc0
parent965288c5eed1c49057d0131ca85b7db18d340778 (diff)
sysv-generator: avoid freeing uninitialized variable
Would happen if lookup_paths_init returns an error.
-rw-r--r--src/sysv-generator/sysv-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
index 5ecd750f6a..714ce8f6cb 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -922,7 +922,7 @@ finish:
int main(int argc, char *argv[]) {
int r, q;
_cleanup_lookup_paths_free_ LookupPaths lp = {};
- _cleanup_(free_sysvstub_hashmapp) Hashmap *all_services;
+ _cleanup_(free_sysvstub_hashmapp) Hashmap *all_services = NULL;
SysvStub *service;
Iterator j;