From 0c32bae982cf6a8ed7bcec7f647e0d1f3b4807f2 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 27 Oct 2020 08:39:18 -0700 Subject: [PATCH] avoid use of undefined warning when logging --- src/clientconn.cpp | 2 +- src/clientget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clientconn.cpp b/src/clientconn.cpp index 4aadf0a..75dc0b6 100644 --- a/src/clientconn.cpp +++ b/src/clientconn.cpp @@ -345,7 +345,7 @@ void Connection::handle_DESTROY_CHANNEL() EvInBuf M(peerBE, segBuf.get(), 16); - uint32_t cid, sid; + uint32_t cid=0, sid=0; from_wire(M, sid); from_wire(M, cid); diff --git a/src/clientget.cpp b/src/clientget.cpp index 7360138..14b3587 100644 --- a/src/clientget.cpp +++ b/src/clientget.cpp @@ -255,7 +255,7 @@ void Connection::handle_GPR(pva_app_msg_t cmd) EvInBuf M(peerBE, segBuf.get(), 16); uint32_t ioid; - uint8_t subcmd; + uint8_t subcmd=0; Status sts; Value data; // hold prototype (INIT) or reply data (GET)