From edc8d7d85c67f49fe6b3deb8868013bf3933f9e7 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Tue, 19 May 2015 11:45:06 +0530 Subject: libglusterfs: fix uninitialized argument value common-utils.c:2871:17: warning: Function call argument is an uninitialized value gf_log ("glusterfs", GF_LOG_DEBUG, "lower: %d, higher:%d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: Iffde527a392afe783908aee12040d555c77c6983 BUG: 1222769 Signed-off-by: Prasanna Kumar Kalever Reviewed-on: http://review.gluster.org/10814 Reviewed-by: Kaleb KEITHLEY Tested-by: NetBSD Build System Reviewed-by: Raghavendra Bhat Reviewed-by: Vijay Bellur --- libglusterfs/src/common-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index 428cdecc356..48a1c41efcf 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -2839,9 +2839,10 @@ out: gf_boolean_t gf_ports_reserved (char *blocked_port, gf_boolean_t *ports) { - gf_boolean_t result = _gf_false; + gf_boolean_t result = _gf_false; char *range_port = NULL; - int16_t tmp_port1, tmp_port2 = -1; + int16_t tmp_port1 = -1; + int16_t tmp_port2 = -1; if (strstr (blocked_port, "-") == NULL) { /* get rid of the new line character*/ -- cgit