summaryrefslogtreecommitdiff
path: root/mysys/thr_alarm.c
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-05-26 19:11:22 +0300
committerunknown <monty@narttu.mysql.fi>2003-05-26 19:11:22 +0300
commit6f8e0d13642a43f35f4deb15437be029df023b45 (patch)
tree9cac5a3c7a7067dbf4a68793f0de86fe1b298f57 /mysys/thr_alarm.c
parent6fea1f3373ef5568a1e4242a1eac9e832397da01 (diff)
downloadmariadb-git-6f8e0d13642a43f35f4deb15437be029df023b45.tar.gz
Fix for 64 bit machines (To remove warnings on Itanium)
mysys/thr_alarm.c: Safety fix
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 1b58a0274ff..ca8e4e8bcb6 100644
--- a/mysys/thr_alarm.c
+++ b/mysys/thr_alarm.c
@@ -169,6 +169,7 @@ bool thr_alarm(thr_alarm_t *alrm, uint sec, ALARM *alarm_data)
if (!(alarm_data=(ALARM*) my_malloc(sizeof(ALARM),MYF(MY_WME))))
{
DBUG_PRINT("info", ("failed my_malloc()"));
+ *alrm= 0; /* No alarm */
pthread_mutex_unlock(&LOCK_alarm);
pthread_sigmask(SIG_SETMASK,&old_mask,NULL);
DBUG_RETURN(1);