From 9aa3d2a8ec39a9e1ecccfcf021ff5905578136ac Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 18 Apr 2013 22:23:32 +0300 Subject: [PATCH] memset arguments were reversed. Found by Coverity scan. --- convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.c b/convert.c index c920a22..14ab061 100644 --- a/convert.c +++ b/convert.c @@ -485,7 +485,7 @@ interval2istruct(SQLSMALLINT ctype, int precision, const char *str, SQL_INTERVAL BOOL sign; SQLINTERVAL itype = interval2itype(ctype); - memset(st, sizeof(SQL_INTERVAL_STRUCT), 0); + memset(st, 0, sizeof(SQL_INTERVAL_STRUCT)); if ((scnt = sscanf(str, "%d-%d", &years, &mons)) >=2) { if (SQL_IS_YEAR_TO_MONTH == itype) -- 2.39.5