1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Safety fix for alarms on windows.

This commit is contained in:
monty@mashka.mysql.fi
2003-11-17 12:59:07 +02:00
parent d0a21a0aeb
commit ea337204cb
2 changed files with 13 additions and 7 deletions

View File

@@ -638,7 +638,8 @@ bool thr_got_alarm(thr_alarm_t *alrm_ptr)
void thr_end_alarm(thr_alarm_t *alrm_ptr)
{
thr_alarm_t alrm= *alrm_ptr;
if (alrm->crono)
/* alrm may be zero if thr_alarm aborted with an error */
if (alrm && alrm->crono)
{
KillTimer(NULL, alrm->crono);
alrm->crono = 0;