summaryrefslogtreecommitdiff
path: root/navit/messages.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-26 00:46:10 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-26 00:46:10 +0000
commitda3b9764b7d50959ad7df1690cd5c0c4cf1c8c54 (patch)
tree65a09c4a0a92f14399e23a582eb1d243f67fc65a /navit/messages.c
parenta416f770b72a216406685b8011b4e557992a0916 (diff)
downloadnavit-da3b9764b7d50959ad7df1690cd5c0c4cf1c8c54.tar.gz
Add:Core:Check for existence of event system before using it
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3297 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/messages.c')
-rw-r--r--navit/messages.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/messages.c b/navit/messages.c
index 141070979..b3d9ddcce 100644
--- a/navit/messages.c
+++ b/navit/messages.c
@@ -144,6 +144,8 @@ struct messagelist
void
messagelist_init(struct messagelist *this_)
{
+ if (!event_system())
+ return;
this_->msg_cleanup_cb = callback_new_1(callback_cast(message_cleanup), this_);
this_->msg_cleanup_to = event_add_timeout(1000, 1, this_->msg_cleanup_cb);
}