Blob Blame History Raw
From: Andrew Beekhof <andrew@beekhof.net>
Date: Wed, 2 Sep 2015 14:48:17 +1000
Subject: [PATCH] Fix: crmd: Correctly enable/disable notifications

(cherry picked from commit 7368cf120cd5ee848d2bdcd788497a3b89616b05)
---
 crmd/notify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crmd/notify.c b/crmd/notify.c
index 980bfa6..ccf5ea8 100644
--- a/crmd/notify.c
+++ b/crmd/notify.c
@@ -50,7 +50,7 @@ crmd_enable_notifications(const char *script, const char *target)
     free(notify_target);
     notify_target = NULL;
 
-    if(safe_str_eq(script, "/dev/null")) {
+    if(script == NULL || safe_str_eq(script, "/dev/null")) {
         crm_notice("Notifications disabled");
         return;
     }