aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sp/protocol/pair1/pair.c2
-rw-r--r--src/testing/marry.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sp/protocol/pair1/pair.c b/src/sp/protocol/pair1/pair.c
index 60de92e0..4a909888 100644
--- a/src/sp/protocol/pair1/pair.c
+++ b/src/sp/protocol/pair1/pair.c
@@ -374,7 +374,7 @@ pair1_send_sched(pair1_sock *s)
pair1_pipe *p;
nni_msg * m;
nni_aio * a = NULL;
- size_t l;
+ size_t l = 0;
nni_mtx_lock(&s->mtx);
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++) {