summaryrefslogtreecommitdiff
path: root/sql-common/my_time.c
diff options
context:
space:
mode:
authorunknown <tsmith@quadxeon.mysql.com>2007-05-18 06:27:07 +0200
committerunknown <tsmith@quadxeon.mysql.com>2007-05-18 06:27:07 +0200
commit2018978eb4a702e3966dec3d89f36a2fb05e360b (patch)
treee5f68c3e978191700f4925bcb6cd562b54885279 /sql-common/my_time.c
parentc2d3fb6b204e93de25487d17b5d2598beb800225 (diff)
parent9548a0757a0a4c1f018365347fc626167b8d148f (diff)
downloadmariadb-git-2018978eb4a702e3966dec3d89f36a2fb05e360b.tar.gz
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50
Diffstat (limited to 'sql-common/my_time.c')
-rw-r--r--sql-common/my_time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c
index 4a4ebf4b84d..f5d5828e024 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -1152,6 +1152,7 @@ longlong number_to_datetime(longlong nr, MYSQL_TIME *time_res,
ok:
part1=(long) (nr/LL(1000000));
part2=(long) (nr - (longlong) part1*LL(1000000));
+ bzero((char*) time_res, sizeof(*time_res));
time_res->year= (int) (part1/10000L); part1%=10000L;
time_res->month= (int) part1 / 100;
time_res->day= (int) part1 % 100;