From e98a90cecf38eab99681ca25db379ade0ccce1be 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 --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/init.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 6b234d2..9159e9b 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.10.18.193920" +#define Cdrskin_timestamP "2007.10.18.200336" diff --git a/libburn/init.c b/libburn/init.c index 8d20a18..0dd49f0 100644 --- a/libburn/init.c +++ b/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)