From 495fb0a58d30b1135c73fa84d761620cc95cc1b4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 24 Jan 2021 18:04:46 -0800 Subject: fixes #1415 pair.c compiler warning --- src/sp/protocol/pair1/pair.c | 2 +- src/testing/marry.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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. +// Copyright 2021 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // 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++) { -- cgit v1.2.3-70-g09d2