chiark / gitweb /
install: fix bad memory access
[elogind.git] / src / shared / install.c
index 6172c42..559fda2 100644 (file)
@@ -220,7 +220,7 @@ static int remove_marked_symlinks_fd(
                             instance_whitelist &&
                             !strv_contains(instance_whitelist, de->d_name)) {
 
                             instance_whitelist &&
                             !strv_contains(instance_whitelist, de->d_name)) {
 
-                                _cleanup_free_ char *w;
+                                _cleanup_free_ char *w = NULL;
 
                                 /* OK, the file is not listed directly
                                  * in the whitelist, so let's check if
 
                                 /* OK, the file is not listed directly
                                  * in the whitelist, so let's check if