File 0137-Monitor-mailfrom-is-initialized-correctly.patch of Package mdadm.7989

From 72362f18aee5adedb405fe61c324604184d74555 Mon Sep 17 00:00:00 2001
From: Jes Sorensen <jsorensen@fb.com>
Date: Thu, 11 May 2017 16:44:19 -0400
Subject: [PATCH] Monitor: mailfrom is initialized correctly
Git-commit: 72362f18aee5adedb405fe61c324604184d74555
Patch-mainline: mdadm-4.0+
References: bsc#1069165, bsc#1069167, bsc#1068030

Remove gratituous variable initialization.

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Signed-off-by: Coly Li <colyli@suse.de>

---
 Monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Monitor.c b/Monitor.c
index a4afe75..83a6d10 100644
--- a/Monitor.c
+++ b/Monitor.c
@@ -125,7 +125,7 @@ int Monitor(struct mddev_dev *devlist,
 	struct state *st2;
 	int finished = 0;
 	struct mdstat_ent *mdstat = NULL;
-	char *mailfrom = NULL;
+	char *mailfrom;
 	struct alert_info info;
 	struct mddev_ident *mdlist;
 
-- 
2.13.6
openSUSE Build Service is sponsored by