Blame SOURCES/0015-Fix-crmd-Correctly-enable-disable-notifications.patch

3d71c6
From: Andrew Beekhof <andrew@beekhof.net>
3d71c6
Date: Wed, 2 Sep 2015 14:48:17 +1000
3d71c6
Subject: [PATCH] Fix: crmd: Correctly enable/disable notifications
3d71c6
3d71c6
(cherry picked from commit 7368cf120cd5ee848d2bdcd788497a3b89616b05)
3d71c6
---
3d71c6
 crmd/notify.c | 2 +-
3d71c6
 1 file changed, 1 insertion(+), 1 deletion(-)
3d71c6
3d71c6
diff --git a/crmd/notify.c b/crmd/notify.c
3d71c6
index 980bfa6..ccf5ea8 100644
3d71c6
--- a/crmd/notify.c
3d71c6
+++ b/crmd/notify.c
3d71c6
@@ -50,7 +50,7 @@ crmd_enable_notifications(const char *script, const char *target)
3d71c6
     free(notify_target);
3d71c6
     notify_target = NULL;
3d71c6
 
3d71c6
-    if(safe_str_eq(script, "/dev/null")) {
3d71c6
+    if(script == NULL || safe_str_eq(script, "/dev/null")) {
3d71c6
         crm_notice("Notifications disabled");
3d71c6
         return;
3d71c6
     }