[vlc-commits] httpd: remove write only string

Rémi Denis-Courmont git at videolan.org
Sun Apr 27 16:02:33 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 27 16:52:40 2014 +0300| [5fee0e7de42125d73d73347348289c593cf56ae4] | committer: Rémi Denis-Courmont

httpd: remove write only string

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5fee0e7de42125d73d73347348289c593cf56ae4
---

 src/network/httpd.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 816d348..e38d09c 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -301,7 +301,6 @@ struct httpd_file_t
 {
     httpd_url_t *url;
 
-    char *psz_url;
     char *psz_mime;
 
     httpd_file_callback_t pf_fill;
@@ -376,7 +375,6 @@ httpd_file_t *httpd_FileNew(httpd_host_t *host,
         return NULL;
     }
 
-    file->psz_url  = strdup(psz_url);
     if (psz_mime && *psz_mime)
         file->psz_mime = strdup(psz_mime);
     else
@@ -401,7 +399,6 @@ httpd_file_sys_t *httpd_FileDelete(httpd_file_t *file)
 
     httpd_UrlDelete(file->url);
 
-    free(file->psz_url);
     free(file->psz_mime);
 
     free(file);



More information about the vlc-commits mailing list