src: fix some static analysis warnings
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2023-03-03 18:33:07 +01:00
parent 0264604571
commit 69abcf2638
3 changed files with 3 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ Platform::getLocalTime(struct tm* timedata)
return false;
#elif defined(BOARD_ESP32)
time_t rawtime;
memset(&rawtime, 0, sizeof(rawtime));
memset(&rawtime, sizeof(rawtime), 0);
time(&rawtime);
(*timedata) = (*localtime(&rawtime));
return (timedata->tm_year > (2016-1990));