[vlc-commits] cookies: missing initializers

Rémi Denis-Courmont git at videolan.org
Thu Sep 15 12:52:23 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 15 13:51:44 2016 +0300| [3b63f6e58d316f086f171ecebc9b3636d36efad3] | committer: Rémi Denis-Courmont

cookies: missing initializers

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

 src/misc/httpcookies.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/misc/httpcookies.c b/src/misc/httpcookies.c
index 5eb4d74..b6d174b 100644
--- a/src/misc/httpcookies.c
+++ b/src/misc/httpcookies.c
@@ -203,6 +203,9 @@ static http_cookie_t *cookie_parse(const char *value,
     if (unlikely(cookie == NULL))
         return NULL;
 
+    cookie->psz_domain = NULL;
+    cookie->psz_path = NULL;
+
     /* Get the NAME=VALUE part of the Cookie */
     size_t value_length = strcspn(value, ";");
     const char *p = memchr(value, '=', value_length);



More information about the vlc-commits mailing list