]> git.sesse.net Git - vlc/commitdiff
Accept NULL hostname for httpd_HostNew
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 29 Jul 2005 16:23:54 +0000 (16:23 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 29 Jul 2005 16:23:54 +0000 (16:23 +0000)
src/misc/httpd.c

index 88a0676156337a8d23a0f1b3db800400bf6e8a9c..6109ce5ce36ad3440edad4ace642358810e431a6 100644 (file)
@@ -901,6 +901,9 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
     vlc_value_t  lockval;
     int i;
 
+    if( psz_hostname == NULL )
+        psz_hostname = "";
+
     psz_host = strdup( psz_hostname );
     if( psz_host == NULL )
     {