summaryrefslogtreecommitdiff
path: root/mysys/thr_alarm.c
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-06-28 15:06:16 +0300
committermonty@mysql.com <>2005-06-28 15:06:16 +0300
commit10c4678deff9e5daaf2f9c05244a05a9e61ec977 (patch)
treebf56a30c6bb6b1807ab7d923cca1960af81c0459 /mysys/thr_alarm.c
parent46536c3a60a00131ceaec7760813bbdae2d301c4 (diff)
downloadmariadb-git-10c4678deff9e5daaf2f9c05244a05a9e61ec977.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
Diffstat (limited to 'mysys/thr_alarm.c')
-rw-r--r--mysys/thr_alarm.c1
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);
}