teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0503-sysctl-fix-uninitialized-variable.patch

923a60
From 75d982344e59e1dd916c214c5ccb6339c5c94254 Mon Sep 17 00:00:00 2001
923a60
From: Michal Sekletar <msekleta@redhat.com>
923a60
Date: Fri, 25 Aug 2017 13:13:50 +0200
923a60
Subject: [PATCH] sysctl: fix uninitialized variable
923a60
923a60
RHEL-only
923a60
923a60
Reported-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
923a60
923a60
Resolves: #1485121
923a60
---
923a60
 src/sysctl/sysctl.c | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
923a60
index bb2bea7cdf..7fb016ceea 100644
923a60
--- a/src/sysctl/sysctl.c
923a60
+++ b/src/sysctl/sysctl.c
923a60
@@ -91,7 +91,7 @@ static int apply_sysctl(const char *property, const char *value) {
923a60
 }
923a60
 
923a60
 static int apply_all(OrderedHashmap *sysctl_options) {
923a60
-        int r;
923a60
+        int r = 0;
923a60
         char *property, *value;
923a60
         Iterator i;
923a60