Prevented SIGSEGV with burn_msgs_obtain() on non-initialized library

This commit is contained in:
Thomas Schmitt 2007-10-18 20:03:50 +00:00
parent 2a669879a4
commit e98a90cecf
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.10.18.193920"
#define Cdrskin_timestamP "2007.10.18.200336"

View File

@ -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)