summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libglusterfs/src/common-utils.c5
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*/