Browse Source

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)
Michael Jones 9 years ago
parent
commit
52e6ae57ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      exec/cfg.c

+ 2 - 2
exec/cfg.c

@@ -521,8 +521,8 @@ static void message_handler_req_exec_cfg_killnode (
 	cs_name_t reason;
 	cs_name_t reason;
 
 
 	ENTER();
 	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()) {
         if (req_exec_cfg_killnode->nodeid == api->totem_nodeid_get()) {
 		marshall_from_mar_name_t(&reason, &req_exec_cfg_killnode->reason);
 		marshall_from_mar_name_t(&reason, &req_exec_cfg_killnode->reason);
 		log_printf(LOGSYS_LEVEL_NOTICE, "Killed by node %d: %s",
 		log_printf(LOGSYS_LEVEL_NOTICE, "Killed by node %d: %s",