removed minor warnings

This commit is contained in:
2019-02-08 16:32:23 +01:00
parent 046fb11e5e
commit 3c77447868
3 changed files with 6 additions and 5 deletions

View File

@ -115,7 +115,7 @@ inline std::string NowTime()
const int buffer_len = sizeof(buffer);
time_t t;
time(&t);
tm r = {};
tm r;
strftime(buffer, buffer_len, "%X", localtime_r(&t, &r));
buffer[buffer_len - 1] = 0;
struct timeval tv;