summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-01-24 18:04:46 -0800
committerGarrett D'Amore <garrett@damore.org>2021-01-24 18:04:46 -0800
commit495fb0a58d30b1135c73fa84d761620cc95cc1b4 (patch)
tree4843561b07bc83485c83d1b5520daae54984f985 /src/testing
parente4152a37c6e288382c64942edc2edda410681c9b (diff)
downloadnng-495fb0a58d30b1135c73fa84d761620cc95cc1b4.tar.gz
nng-495fb0a58d30b1135c73fa84d761620cc95cc1b4.tar.bz2
nng-495fb0a58d30b1135c73fa84d761620cc95cc1b4.zip
fixes #1415 pair.c compiler warning
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/marry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/marry.c b/src/testing/marry.c
index c0328df9..be109b7d 100644
--- a/src/testing/marry.c
+++ b/src/testing/marry.c
@@ -1,5 +1,5 @@
//
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -220,7 +220,7 @@ replace_port_zero(const char *addr, char *buf, int port)
{
int i;
int j;
- bool colon;
+ bool colon = false;
char c;
for (i = 0, j = 0; (c = addr[i]) != '\0'; i++) {