about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/pthread/timer_delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/pthread/timer_delete.c')
-rw-r--r--linuxthreads/sysdeps/pthread/timer_delete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/sysdeps/pthread/timer_delete.c b/linuxthreads/sysdeps/pthread/timer_delete.c
index b7d59fe68d..24f4ffed3c 100644
--- a/linuxthreads/sysdeps/pthread/timer_delete.c
+++ b/linuxthreads/sysdeps/pthread/timer_delete.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kaz Kylheku <kaz@ashi.footprints.net>.
 
@@ -41,7 +41,7 @@ timer_delete (timerid)
     __set_errno (EINVAL);
   else
     {
-      if (timer->armed)
+      if (timer->armed && timer->thread != NULL)
 	{
 	  struct thread_node *thread = timer->thread;
 	  assert (thread != NULL);