diff options
author | monty@mysql.com <> | 2003-11-04 14:59:38 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2003-11-04 14:59:38 +0200 |
commit | 6622d6f8cdb0ca0d64e18aba9cc5f3a10f6afbbf (patch) | |
tree | 33a3c695fa3469507c7488a763937e4ef85e8156 /sql/time.cc | |
parent | 669365b41ce6b355329ab00f157b404c2cbaee77 (diff) | |
download | mariadb-git-6622d6f8cdb0ca0d64e18aba9cc5f3a10f6afbbf.tar.gz |
Fixed access to uninitialized memory in protocol::store_time
Diffstat (limited to 'sql/time.cc')
-rw-r--r-- | sql/time.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/time.cc b/sql/time.cc index 3fa00fc683b..e696918dee3 100644 --- a/sql/time.cc +++ b/sql/time.cc @@ -779,7 +779,8 @@ fractional: current_thd->cuted_fields++; return 1; } - l_time->month=0; + l_time->year= 0; // For protocol::store_time + l_time->month= 0; l_time->day= date[0]; l_time->hour= date[1]; l_time->minute= date[2]; |