From 663816223b555eb6df829fa55462737c9e77e705 Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Sat, 26 Dec 2020 17:44:49 +0100 Subject: [PATCH] Avoid possibility of using char* without initialization --- operame.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operame.ino b/operame.ino index 0bd9464..8f191d8 100644 --- a/operame.ino +++ b/operame.ino @@ -358,7 +358,7 @@ void mhz_setup() { mhz.begin(hwserial1); // mhz.setFilter(true, true); Library filter doesn't handle 0436 mhz.autoCalibration(true); - char v[5]; + char v[5] = {}; mhz.getVersion(v); v[4] = '\0'; if (strcmp("0436", v) == 0) mhz_co2_init = 436;