syslog_init(): Bail out, if kernel_args::debug_output is NULL. Would crash on
platforms that are ignorant of the debug syslog feature. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36748 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1411,7 +1411,7 @@ err1:
|
|||||||
static status_t
|
static status_t
|
||||||
syslog_init(struct kernel_args* args)
|
syslog_init(struct kernel_args* args)
|
||||||
{
|
{
|
||||||
if (!args->keep_debug_output_buffer)
|
if (!args->keep_debug_output_buffer || args->debug_output == NULL)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
sSyslogBuffer = create_ring_buffer_etc(args->debug_output, args->debug_size,
|
sSyslogBuffer = create_ring_buffer_etc(args->debug_output, args->debug_size,
|
||||||
|
|||||||
Reference in New Issue
Block a user