aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-01-02 19:52:32 +0000
committerFrederic Culot <calcurse@culot.org>2009-01-02 19:52:32 +0000
commitaa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd (patch)
tree99f53002ba1c7d7f828761974d5b8f681ee867e2 /src/io.c
parentcac30a7e1469a8f061f64712dbea100a012dd788 (diff)
downloadcalcurse-aa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd.tar.gz
calcurse-aa7d6c5eb75d236a6a58b4df8c98335fd0ac24dd.zip
various bugfixes
Diffstat (limited to 'src/io.c')
-rwxr-xr-xsrc/io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index a2da17b..86503e7 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.52 2009/01/01 17:50:41 culot Exp $ */
+/* $calcurse: io.c,v 1.53 2009/01/02 19:52:32 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -2812,5 +2812,6 @@ io_start_psave_thread (conf_t *conf)
void
io_stop_psave_thread (void)
{
- pthread_cancel (io_t_psave);
+ if (io_t_psave)
+ pthread_cancel (io_t_psave);
}