diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2014-10-12 15:46:31 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2014-10-12 15:46:31 +0200 |
commit | b10fa87b15b504ed1467558cf8984ed8de0c6184 (patch) | |
tree | 71a39521b8320987a45281787e86a8a5bbc055c8 | |
parent | 50fc9b3b1936662f657dedd124244d373ee8b2be (diff) | |
download | mariadb-git-b10fa87b15b504ed1467558cf8984ed8de0c6184.tar.gz |
- Remove one gcc warning
modified:
storage/connect/tabodbc.cpp
-rw-r--r-- | storage/connect/tabodbc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |