From 41ce98d2df7249f48e2f279045aa7769a6a5e9dd Mon Sep 17 00:00:00 2001 From: Stephan Enderlein Date: Sat, 15 Jul 2023 21:32:52 +0200 Subject: [PATCH] avoid compile warning about uninitialized pointers --- src/web/web.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/web.h b/src/web/web.h index f9f04291..0b4f2616 100644 --- a/src/web/web.h +++ b/src/web/web.h @@ -701,7 +701,7 @@ class Web { // NRF Statistics stat = mApp->getStatistics(); - uint32_t *nrfSendCnt, *nrfRetransmits; + uint32_t *nrfSendCnt=NULL, *nrfRetransmits=NULL; mApp->getNrfRadioCounters(nrfSendCnt, nrfRetransmits); metrics += radioStatistic(F("rx_success"), stat->rxSuccess); metrics += radioStatistic(F("rx_fail"), stat->rxFail);