From b10fa87b15b504ed1467558cf8984ed8de0c6184 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Sun, 12 Oct 2014 15:46:31 +0200 Subject: - Remove one gcc warning modified: storage/connect/tabodbc.cpp --- storage/connect/tabodbc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/connect/tabodbc.cpp b/storage/connect/tabodbc.cpp index 023d7efa708..c9f5fbe31c7 100644 --- a/storage/connect/tabodbc.cpp +++ b/storage/connect/tabodbc.cpp @@ -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; -- cgit v1.2.1