fix unitialized local var

Local variables are not initialized by default. Make sure that buf[] is filled with zeros.
This commit is contained in:
Frank
2023-01-03 17:10:07 +01:00
committed by GitHub
parent c7f1883c31
commit 0571aa92f2

View File

@@ -507,7 +507,7 @@ String dmxProcessor(const String& var)
void serveSettingsJS(AsyncWebServerRequest* request)
{
char buf[SETTINGS_STACK_BUF_SIZE+37];
char buf[SETTINGS_STACK_BUF_SIZE+37] = { '\0' }; // WLEDMM ensure buffer is cleared initially
buf[0] = 0;
byte subPage = request->arg(F("p")).toInt();
if (subPage > 10) {