[Pkg-telepathy-commits] [libnice] 200/265: Initialize variables to reduce unexpected behavior in case something goes wrong
Simon McVittie
smcv at debian.org
Wed May 14 12:05:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 267a67672169d8586a291583357391533433684f
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Mon Mar 31 19:17:28 2014 -0400
Initialize variables to reduce unexpected behavior in case something goes wrong
---
agent/agent.c | 6 +++---
examples/simple-example.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/agent/agent.c b/agent/agent.c
index 3420eb5..95d3c5f 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -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;
diff --git a/examples/simple-example.c b/examples/simple-example.c
index e3b367c..397a333 100644
--- a/examples/simple-example.c
+++ b/examples/simple-example.c
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list