[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] [PATCH 2/3] Fix uninitialized variable.
From: |
Thierry Reding |
Subject: |
[Linphone-developers] [PATCH 2/3] Fix uninitialized variable. |
Date: |
Tue, 15 Nov 2011 15:57:49 +0100 |
The use_arc variable is never initialized when video support is
disabled. This commit initializes it to TRUE by default.
---
coreapi/linphonecall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c
index b105f2b..ade106d 100644
--- a/coreapi/linphonecall.c
+++ b/coreapi/linphonecall.c
@@ -1249,7 +1249,7 @@ void linphone_call_start_media_streams(LinphoneCall
*call, bool_t all_inputs_mut
LinphoneCore *lc=call->core;
LinphoneAddress *me=linphone_core_get_primary_contact_parsed(lc);
char *cname;
- bool_t use_arc;
+ bool_t use_arc = TRUE;
#ifdef VIDEO_ENABLED
const SalStreamDescription
*vstream=sal_media_description_find_stream(call->resultdesc,
SalProtoRtpAvp,SalVideo);
--
1.7.7.3