1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix clang compile error in value.cpp

This commit is contained in:
Olivier Bertrand
2021-06-25 18:35:26 +02:00
parent 7863554e42
commit 1c4b917f0e

View File

@@ -2744,11 +2744,11 @@ void DTVAL::SetValue(int n)
Tval = n;
if (Pdtp) {
size_t n = 0, slen = (size_t)Len + 1;
size_t slen = (size_t)Len + 1;
struct tm tm, *ptm= GetGmTime(&tm);
if (ptm)
n = strftime(Sdate, slen, Pdtp->OutFmt, ptm);
strftime(Sdate, slen, Pdtp->OutFmt, ptm);
} // endif Pdtp