Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > deecb6b6a05b8293e284be1ad9b5f073 > files > 24

xymon-4.3.17-5.1.mga5.src.rpm

From 3fb815398b9c7aa3081101b6d1373e185ecad905 Mon Sep 17 00:00:00 2001
From: William Murphy <warrendiogenese@gmail.com>
Date: Mon, 11 Aug 2014 05:38:24 -0700
Subject: [PATCH] Stop core flood when package removed

---
 lib/environ.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/environ.c b/lib/environ.c
index 246ac79..abc836b 100644
--- a/lib/environ.c
+++ b/lib/environ.c
@@ -327,6 +327,12 @@ char *expand_env(char *s)
 	char savech;
 	envxp_t *myxp;
 
+	/* Stop the core flood after uninstall */
+	if ( !s ) {
+	  errprintf("Expected variable name, but passed NULL\n");
+	  abort();
+	}
+
 	if ((depth == 0) && res) xfree(res);
 	depth++;
 
-- 
1.8.4.5