Commit 267a6767 authored by Olivier Crête's avatar Olivier Crête
Browse files

Initialize variables to reduce unexpected behavior in case something goes wrong

parent 4e9b3e12
......@@ -4681,11 +4681,11 @@ nice_agent_parse_remote_candidate_sdp (NiceAgent *agent, guint stream_id,
int ntype = -1;
gchar **tokens = NULL;
const gchar *foundation = NULL;
guint component_id;
guint component_id = 0;
const gchar *transport = NULL;
guint32 priority;
guint32 priority = 0;
const gchar *addr = NULL;
guint16 port;
guint16 port = 0;
const gchar *type = NULL;
const gchar *raddr = NULL;
guint16 rport = 0;
......
......@@ -77,7 +77,7 @@ main(int argc, char *argv[])
{
NiceAgent *agent;
gchar *stun_addr = NULL;
guint stun_port;
guint stun_port = 0;
gboolean controlling;
// Parse arguments
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment