[vlc-commits] microdns: Fix use of uninitialized b_ipv6
Hugo Beauzée-Luyssen
git at videolan.org
Wed Jan 25 15:22:26 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Jan 25 14:36:48 2017 +0100| [76b5ef663e966612ed7b7940b96559479489efb5] | committer: Hugo Beauzée-Luyssen
microdns: Fix use of uninitialized b_ipv6
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76b5ef663e966612ed7b7940b96559479489efb5
---
modules/services_discovery/microdns.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/services_discovery/microdns.c b/modules/services_discovery/microdns.c
index 83bdf9e..86b2a50 100644
--- a/modules/services_discovery/microdns.c
+++ b/modules/services_discovery/microdns.c
@@ -372,7 +372,7 @@ new_entries_sd_cb( void *p_this, int i_status, const struct rr_entry *p_entries
struct srv *p_srvs;
unsigned i_nb_srv;
const char *psz_ip;
- bool b_ipv6;
+ bool b_ipv6 = false;
if( parse_entries( p_entries, false, &p_srvs, &i_nb_srv,
&psz_ip, &b_ipv6 ) != VLC_SUCCESS )
return;
@@ -448,7 +448,7 @@ new_entries_rd_cb( void *p_this, int i_status, const struct rr_entry *p_entries
struct srv *p_srvs;
unsigned i_nb_srv;
const char *psz_ip;
- bool b_ipv6;
+ bool b_ipv6 = false;
if( parse_entries( p_entries, true, &p_srvs, &i_nb_srv,
&psz_ip, &b_ipv6 ) != VLC_SUCCESS )
return;
More information about the vlc-commits
mailing list