aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog8
-rwxr-xr-xconfigure.ac4
-rwxr-xr-xsrc/notify.c5
3 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 79582b4..62a04af 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-01-22 Frederic Culot <frederic@culot.org>
+
+ * src/notify.c (notify_stop_main_thread): avoid a possible
+ segfault if this function is called before the thread was launched
+ (thanks Jan for reporting this)
+
+ * configure.ac: switch to 2.5_beta
+
2009-01-05 Frederic Culot <frederic@culot.org>
* src/custom.c (custom_general_config, print_general_options):
diff --git a/configure.ac b/configure.ac
index 678b25e..815a993 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1,10 +1,10 @@
-# $calcurse: configure.ac,v 1.28 2008/12/28 13:13:59 culot Exp $
+# $calcurse: configure.ac,v 1.29 2009/01/22 18:11:56 culot Exp $
#-------------------------------------------------------------------------------
# Init
#-------------------------------------------------------------------------------
AC_PREREQ(2.59)
-AC_INIT(calcurse, 2.4, frederic@culot.org)
+AC_INIT(calcurse, 2.5_beta, frederic@culot.org)
AM_INIT_AUTOMAKE
AM_GNU_GETTEXT([external])
AC_CONFIG_SRCDIR([src/calcurse.c])
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);
}
/*