Blob Blame History Raw
From 52e6ae57ea06d0bef61c5c9250881bef1372ead2 Mon Sep 17 00:00:00 2001
From: Michael Jones <jonesmz@jonesmz.com>
Date: Mon, 10 Oct 2016 11:18:25 -0500
Subject: [PATCH] cfg: Prevents use of uninitialized buffer

Signed-off-by: Michael Jones <jonesmz@jonesmz.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
(cherry picked from commit a24d26c46ace663ac69e469f8e415e14cc1a8906)
---
 exec/cfg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/cfg.c b/exec/cfg.c
index 4e62d73..a5482ad 100644
--- a/exec/cfg.c
+++ b/exec/cfg.c
@@ -521,8 +521,8 @@ static void message_handler_req_exec_cfg_killnode (
 	cs_name_t reason;
 
 	ENTER();
-	log_printf(LOGSYS_LEVEL_DEBUG, "request to kill node %d(us=%d): %s",
-		req_exec_cfg_killnode->nodeid, api->totem_nodeid_get(), reason.value);
+	log_printf(LOGSYS_LEVEL_DEBUG, "request to kill node %d(us=%d)",
+		req_exec_cfg_killnode->nodeid, api->totem_nodeid_get());
         if (req_exec_cfg_killnode->nodeid == api->totem_nodeid_get()) {
 		marshall_from_mar_name_t(&reason, &req_exec_cfg_killnode->reason);
 		log_printf(LOGSYS_LEVEL_NOTICE, "Killed by node %d: %s",
-- 
1.7.1