summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFabrice Bellet <fabrice@bellet.info>2019-06-07 22:12:52 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2019-07-04 17:03:43 -0400
commit18522d7a43fab79f16e97b72834056c8034b3225 (patch)
tree3e62ec9962d9b7a75f017db01b35f78b455b5444 /examples
parent07d3caa54e1351bede32e5be36b3b68365496ab3 (diff)
downloadlibnice-18522d7a43fab79f16e97b72834056c8034b3225.tar.gz
examples: fix compiler warning about uninitialized variables
Diffstat (limited to 'examples')
-rw-r--r--examples/simple-example.c2
-rw-r--r--examples/threaded-example.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple-example.c b/examples/simple-example.c
index a511d29..a26c422 100644
--- a/examples/simple-example.c
+++ b/examples/simple-example.c
@@ -289,7 +289,7 @@ static NiceCandidate *
parse_candidate(char *scand, guint _stream_id)
{
NiceCandidate *cand = NULL;
- NiceCandidateType ntype;
+ NiceCandidateType ntype = NICE_CANDIDATE_TYPE_HOST;
gchar **tokens = NULL;
guint i;
diff --git a/examples/threaded-example.c b/examples/threaded-example.c
index 575b4dc..a1eafae 100644
--- a/examples/threaded-example.c
+++ b/examples/threaded-example.c
@@ -311,7 +311,7 @@ static NiceCandidate *
parse_candidate(char *scand, guint stream_id)
{
NiceCandidate *cand = NULL;
- NiceCandidateType ntype;
+ NiceCandidateType ntype = NICE_CANDIDATE_TYPE_HOST;
gchar **tokens = NULL;
guint i;