]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http: terminate path correctly in http_resolve()
authorJaroslav Kysela <perex@perex.cz>
Sun, 21 Oct 2018 08:27:46 +0000 (10:27 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 21 Oct 2018 08:27:46 +0000 (10:27 +0200)
src/http.c

index 57fcdcf02ba81068dba4622978394d90657f06bf..2d3d72d953e98a4e7a3e108a990f88c773f54ef9 100644 (file)
@@ -181,6 +181,7 @@ http_resolve(http_connection_t *hc, http_path_t *_hp,
     break;
 
   case '?':
+    *v = 0; /* terminate remaining url */
     *argsp = v + 1;
     break;