From 3be0f025870d0d6132c0f1798e08f367dcd8d65a Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Thu, 12 Jan 2012 09:22:07 +0100 Subject: [PATCH] cmapctl: initialize more variables and kill the last gcc warnings Reviewed-by: Steven Dake Signed-off-by: Fabio M. Di Nitto --- tools/corosync-cmapctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/corosync-cmapctl.c b/tools/corosync-cmapctl.c index 17464c31..b371919a 100644 --- a/tools/corosync-cmapctl.c +++ b/tools/corosync-cmapctl.c @@ -503,8 +503,8 @@ static void set_key(cmap_handle_t handle, const char *key_name, const char *key_ uint64_t u64; double dbl; float flt; - cs_error_t err; - int scanf_res; + cs_error_t err = CS_OK; + int scanf_res = 0; cmap_value_types_t type;