SHA256
1
0
forked from pool/systemd
systemd/0031-install-fix-bad-memory-access.patch

26 lines
904 B
Diff
Raw Normal View History

From 25d40bf57cd0b850f479c00528b4378e02f2d841 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Tue, 23 Jun 2015 19:16:18 -0400
Subject: [PATCH 31/32] install: fix bad memory access
---
src/shared/install.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shared/install.c b/src/shared/install.c
index 6172c42..559fda2 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
--
2.4.3