Prevented SIGSEGV with burn_msgs_obtain() on non-initialized library
This commit is contained in:
parent
2a669879a4
commit
e98a90cecf
@ -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);
|
ret = libdax_msgs__text_to_sev(minimum_severity, &minimum_sevno, 0);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
if (libdax_messenger == NULL)
|
||||||
|
return 0;
|
||||||
ret = libdax_msgs_obtain(libdax_messenger, &item, minimum_sevno,
|
ret = libdax_msgs_obtain(libdax_messenger, &item, minimum_sevno,
|
||||||
LIBDAX_MSGS_PRIO_ZERO, 0);
|
LIBDAX_MSGS_PRIO_ZERO, 0);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user