mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Safety fix for alarms on windows.
mysys/thr_alarm.c: Safety fix for alarms on windows sql/mini_client.cc: Added comments
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user