]> git.sesse.net Git - vlc/commitdiff
Use fixed size string for extension. This is more DSO friendly
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 20 Aug 2007 19:13:50 +0000 (19:13 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 20 Aug 2007 19:13:50 +0000 (19:13 +0000)
src/network/httpd.c

index 6dee727b76e38cebc31aedbf9266f183be8b205b..24e5d9bb1d10a7332f673b30948b65bb873b128a 100644 (file)
@@ -187,7 +187,7 @@ struct httpd_client_t
  *****************************************************************************/
 static struct
 {
-    const char *psz_ext;
+    const char psz_ext[8];
     const char *psz_mime;
 } http_mime[] =
 {
@@ -230,7 +230,7 @@ static struct
 
 
     /* end */
-    { NULL,     NULL }
+    { "",       "" }
 };
 
 static const char *httpd_MimeFromUrl( const char *psz_url )
@@ -243,7 +243,7 @@ static const char *httpd_MimeFromUrl( const char *psz_url )
     {
         int i;
 
-        for( i = 0; http_mime[i].psz_ext != NULL ; i++ )
+        for( i = 0; http_mime[i].psz_ext[0] ; i++ )
         {
             if( !strcasecmp( http_mime[i].psz_ext, psz_ext ) )
             {