From: Lennart Poettering Date: Tue, 23 Jun 2015 23:16:18 +0000 (-0400) Subject: install: fix bad memory access X-Git-Tag: v222~81^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F346%2Fhead;p=thirdparty%2Fsystemd.git install: fix bad memory access --- diff --git a/src/shared/install.c b/src/shared/install.c index 6172c42d692..559fda211db 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -220,7 +220,7 @@ static int remove_marked_symlinks_fd( 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