diff options
author | unknown <monty@mysql.com> | 2005-06-28 15:06:16 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-06-28 15:06:16 +0300 |
commit | 05c7edf64801efa5b0d99ca779eb0b31a4d92462 (patch) | |
tree | bf56a30c6bb6b1807ab7d923cca1960af81c0459 /mysys | |
parent | 2776aa35b7abc4c0f742eaa94c04b4072e2ba83d (diff) | |
download | mariadb-git-05c7edf64801efa5b0d99ca779eb0b31a4d92462.tar.gz |
Move reset of insert_values to ensure it's done also during error conditions
This fixed a failure of insert_update.test on some platforms
mysys/thr_alarm.c:
Fixed problem noticed by valgrind
sql/opt_range.cc:
Simple optimization for common case
sql/sql_base.cc:
Safety assert
sql/sql_insert.cc:
Added comment
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/thr_alarm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysys/thr_alarm.c b/mysys/thr_alarm.c index 19611a6027a..05d14073953 100644 --- a/mysys/thr_alarm.c +++ b/mysys/thr_alarm.c @@ -86,6 +86,7 @@ void init_thr_alarm(uint max_alarms) { struct sigaction sact; sact.sa_flags = 0; + bzero((char*) &sact, sizeof(sact)); sact.sa_handler = thread_alarm; sigaction(THR_CLIENT_ALARM, &sact, (struct sigaction*) 0); } |