Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
e798d0dc
Commit
e798d0dc
authored
Mar 14, 2013
by
Simon Morlat
Browse files
fix uninitialized and unused variables
parent
02b05eed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
coreapi/linphonecore.c
coreapi/linphonecore.c
+1
-1
coreapi/proxy.c
coreapi/proxy.c
+10
-7
No files found.
coreapi/linphonecore.c
View file @
e798d0dc
...
...
@@ -2328,7 +2328,7 @@ static LinphoneAddress *get_fixed_contact(LinphoneCore *lc, LinphoneCall *call ,
#endif
LinphoneAddress
*
ctt
=
NULL
;
#ifdef USE_BELLESIP
LinphoneAddress
*
ret
;
LinphoneAddress
*
ret
=
NULL
;
#else
char
*
ret
;
#endif
...
...
coreapi/proxy.c
View file @
e798d0dc
...
...
@@ -272,7 +272,6 @@ LinphoneAddress *guess_contact_for_register(LinphoneProxyConfig *obj){
const
char
*
localip
=
NULL
;
char
*
tmp
;
LCSipTransports
tr
;
LinphoneAddress
*
contact
=
linphone_address_new
(
obj
->
reg_identity
);
if
(
obj
->
contact_params
)
...
...
@@ -293,6 +292,7 @@ LinphoneAddress *guess_contact_for_register(LinphoneProxyConfig *obj){
#ifdef BUILD_UPNP
if
(
obj
->
lc
->
upnp
!=
NULL
&&
linphone_core_get_firewall_policy
(
obj
->
lc
)
==
LinphonePolicyUseUpnp
&&
linphone_upnp_context_get_state
(
obj
->
lc
->
upnp
)
==
LinphoneUpnpStateOk
)
{
LCSipTransports
tr
;
localip
=
linphone_upnp_context_get_external_ipaddress
(
obj
->
lc
->
upnp
);
localport
=
linphone_upnp_context_get_external_port
(
obj
->
lc
->
upnp
);
linphone_core_get_sip_transports
(
obj
->
lc
,
&
tr
);
...
...
@@ -316,12 +316,15 @@ LinphoneAddress *guess_contact_for_register(LinphoneProxyConfig *obj){
if
(
localport
==
-
1
)
{
localport
=
linphone_core_get_sip_port
(
obj
->
lc
);
}
linphone_core_get_sip_transports
(
obj
->
lc
,
&
tr
);
if
(
tr
.
udp_port
<=
0
)
{
if
(
tr
.
tcp_port
>
0
)
{
sal_address_set_param
(
contact
,
"transport"
,
"tcp"
);
}
else
if
(
tr
.
tls_port
>
0
)
{
sal_address_set_param
(
contact
,
"transport"
,
"tls"
);
{
LCSipTransports
tr
;
linphone_core_get_sip_transports
(
obj
->
lc
,
&
tr
);
if
(
tr
.
udp_port
<=
0
)
{
if
(
tr
.
tcp_port
>
0
)
{
sal_address_set_param
(
contact
,
"transport"
,
"tcp"
);
}
else
if
(
tr
.
tls_port
>
0
)
{
sal_address_set_param
(
contact
,
"transport"
,
"tls"
);
}
}
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment