]> git.sesse.net Git - vlc/commitdiff
Initialise i_priority to LOG_INFO as default value in case p_msg->i_type has an inval...
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 28 Dec 2005 18:56:43 +0000 (18:56 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 28 Dec 2005 18:56:43 +0000 (18:56 +0000)
modules/misc/logger.c

index ac8ec61f9588e1802b9820793dc927a1e21b6b7f..4406ff73e861e503a4b462c4d3aa1a53f24345b1 100644 (file)
@@ -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;