- Remove one gcc warning

modified:
  storage/connect/tabodbc.cpp
This commit is contained in:
Olivier Bertrand 2014-10-12 15:46:31 +02:00
parent 50fc9b3b19
commit b10fa87b15

View File

@ -1075,8 +1075,9 @@ void ODBCCOL::ReadColumn(PGLOBAL g)
} // endif Bufp
if (Buf_Type == TYPE_DATE) {
struct tm dbtime = {0,0,0,0,0,0,0,0,0};
struct tm dbtime;
memset(&dbtime, 0, sizeof(tm));
dbtime.tm_sec = (int)Sqlbuf->second;
dbtime.tm_min = (int)Sqlbuf->minute;
dbtime.tm_hour = (int)Sqlbuf->hour;