Prevented SIGSEGV with burn_msgs_obtain() on non-initialized library

ZeroFourZero
Thomas Schmitt 15 years ago
parent 2a669879a4
commit e98a90cecf
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 2
      libburn/init.c

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

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

Loading…
Cancel
Save