mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
Initialise i_priority to LOG_INFO as default value in case p_msg->i_type has an invalid value.
This commit is contained in:
parent
d41acf4d37
commit
ef68c415e4
@ -376,7 +376,8 @@ static void TextPrint( const msg_item_t *p_msg, FILE *p_file )
|
||||
#ifdef HAVE_SYSLOG_H
|
||||
static void SyslogPrint( const msg_item_t *p_msg )
|
||||
{
|
||||
int i_priority;
|
||||
int i_priority = LOG_INFO;
|
||||
|
||||
if( p_msg->i_type == 0 ) i_priority = LOG_INFO;
|
||||
if( p_msg->i_type == 1 ) i_priority = LOG_ERR;
|
||||
if( p_msg->i_type == 2 ) i_priority = LOG_WARNING;
|
||||
|
Loading…
Reference in New Issue
Block a user