]> git.sesse.net Git - vlc/commitdiff
Fix lame compiler warning
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 25 Jun 2005 10:22:59 +0000 (10:22 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 25 Jun 2005 10:22:59 +0000 (10:22 +0000)
src/stream_output/sap.c

index 7a0f1441d76fb891a1edaa6b6404ed7f3ae92f86..7904ea6edbad2f6a5ccd1eddf5ad9060d938dbf0 100644 (file)
@@ -259,7 +259,7 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
     char *psz_type = "application/sdp";
     int i_header_size;
     char *psz_head;
-    vlc_bool_t b_found = VLC_FALSE, b_ipv6;
+    vlc_bool_t b_found = VLC_FALSE, b_ipv6 = VLC_FALSE;
     sap_session_t *p_sap_session;
     mtime_t i_hash;
 
@@ -335,8 +335,6 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
         }
         else
         {
-            b_ipv6 = VLC_FALSE;
-
             /* See RFC2365 for IPv4 scopes */
             if( memcmp( psz_buf, "224.0.0.", 8 ) == 0 )
                 psz_addr = "224.0.0.255";