File pacemaker-libcommon-erase-old-exit_reason.patch of Package pacemaker.14737

commit 69d1bbe5d4117571f02675040f6b8d1c68e324f9
Author: Hideo Yamauchi <renayama19661014@ybb.ne.jp>
Date:   Thu Oct 5 08:47:12 2017 +0900

    Low: libcommon: Erase old exit_reason(2).

diff --git a/lib/common/utils.c b/lib/common/utils.c
index 4fc3b5c93..4afef80fc 100644
--- a/lib/common/utils.c
+++ b/lib/common/utils.c
@@ -557,7 +557,7 @@ create_operation_update(xmlNode * parent, lrmd_event_data_t * op, const char * c
     crm_xml_add(xml_op, XML_ATTR_CRM_VERSION, caller_version);
     crm_xml_add(xml_op, XML_ATTR_TRANSITION_KEY, op->user_data);
     crm_xml_add(xml_op, XML_ATTR_TRANSITION_MAGIC, magic);
-    crm_xml_add(xml_op, XML_LRM_ATTR_EXIT_REASON, exit_reason);
+    crm_xml_add(xml_op, XML_LRM_ATTR_EXIT_REASON, exit_reason == NULL ? "" : exit_reason);
     crm_xml_add(xml_op, XML_LRM_ATTR_TARGET, node); /* For context during triage */
 
     crm_xml_add_int(xml_op, XML_LRM_ATTR_CALLID, op->call_id);
openSUSE Build Service is sponsored by