From 2faecdca1c7625f6dbb148566dd62707a8044a33 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 18 Oct 2007 20:03:50 +0000 Subject: [PATCH] Prevented SIGSEGV with burn_msgs_obtain() on non-initialized library --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/init.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 6b234d27..9159e9bc 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.10.18.193920" +#define Cdrskin_timestamP "2007.10.18.200336" diff --git a/libburn/trunk/libburn/init.c b/libburn/trunk/libburn/init.c index 8d20a184..0dd49f03 100644 --- a/libburn/trunk/libburn/init.c +++ b/libburn/trunk/libburn/init.c @@ -210,6 +210,8 @@ int burn_msgs_obtain(char *minimum_severity, ret = libdax_msgs__text_to_sev(minimum_severity, &minimum_sevno, 0); if (ret <= 0) return 0; + if (libdax_messenger == NULL) + return 0; ret = libdax_msgs_obtain(libdax_messenger, &item, minimum_sevno, LIBDAX_MSGS_PRIO_ZERO, 0); if (ret <= 0)