aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/notify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/notify.c b/src/notify.c
index f258fb8..8eee0d5 100755
--- a/src/notify.c
+++ b/src/notify.c
@@ -1,4 +1,4 @@
-/* $calcurse: notify.c,v 1.35 2009/01/03 21:32:11 culot Exp $ */
+/* $calcurse: notify.c,v 1.36 2009/01/22 18:11:57 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -116,7 +116,8 @@ notify_init_bar (void)
void
notify_stop_main_thread (void)
{
- pthread_cancel (notify_t_main);
+ if (notify_t_main)
+ pthread_cancel (notify_t_main);
}
/*