Skip to content
Snippets Groups Projects
Commit d947d140 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

This isn't C++ and some C compilers don't support the {} initializer syntax

parent 9d2351e4
Branches
Tags
No related merge requests found
......@@ -156,7 +156,7 @@ char* datestr(scfg_t* cfg, time_t t, char* str)
return "---------";
if(!cfg->sys_date_verbal)
return unixtodstr(cfg, (time32_t)t, str);
struct tm tm = {};
struct tm tm = {0};
if(localtime_r(&t, &tm) == NULL)
return "!!!!!!!!!";
char fmt[32] = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment