Browse Source

cmapctl: initialize more variables

and kill the last gcc warnings

Reviewed-by: Steven Dake <sdake@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto 14 years ago
parent
commit
3be0f02587
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/corosync-cmapctl.c

+ 2 - 2
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;