[PATCH 5/5] cmapctl: initialize more variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

and kill the last gcc warnings

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
:100644 100644 17464c3... b371919... M	tools/corosync-cmapctl.c
 tools/corosync-cmapctl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/corosync-cmapctl.c b/tools/corosync-cmapctl.c
index 17464c3..b371919 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;
 
-- 
1.7.7.5

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux