diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2015-05-19 11:45:06 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-06-17 15:40:54 -0700 |
commit | edc8d7d85c67f49fe6b3deb8868013bf3933f9e7 (patch) | |
tree | 0b220b5a8abc19e12cb010a080060242ccef51b9 /libglusterfs/src | |
parent | 515a4c4e08eb9fcd92c9cca693ef9978b8a1b05c (diff) |
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 <prasanna.kalever@redhat.com>
Reviewed-on: http://review.gluster.org/10814
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/common-utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
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*/ |