Refixed for cppcheck 2.1x

This commit is contained in:
Takeshi Nakatani
2023-07-25 13:41:00 +00:00
committed by Andrew Gaul
parent e14a2eb94b
commit faec0d9d15
20 changed files with 88 additions and 60 deletions

View File

@ -310,7 +310,7 @@ bool get_unixtime_from_iso8601(const char* pdate, time_t& unixtime)
}
struct tm tm;
char* prest = strptime(pdate, "%Y-%m-%dT%T", &tm);
const char* prest = strptime(pdate, "%Y-%m-%dT%T", &tm);
if(prest == pdate){
// wrong format
return false;