[systemd-commits] src/sysv-generator
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Sun Apr 26 05:45:57 PDT 2015
src/sysv-generator/sysv-generator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5921fc3cc36df4baa5e16060e7675ace9eda2bef
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Apr 26 14:43:40 2015 +0200
sysv-generator: avoid freeing uninitialized variable
Would happen if lookup_paths_init returns an error.
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
index 5ecd750..714ce8f 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;
More information about the systemd-commits
mailing list