Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
75becdb7
Commit
75becdb7
authored
Jun 16, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize the length to 0 to avoid a compiler warning
parent
86f7a676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
stun/stunmessage.c
stun/stunmessage.c
+6
-6
No files found.
stun/stunmessage.c
View file @
75becdb7
...
@@ -126,7 +126,7 @@ StunMessageReturn
...
@@ -126,7 +126,7 @@ StunMessageReturn
stun_message_find_flag
(
const
StunMessage
*
msg
,
StunAttribute
type
)
stun_message_find_flag
(
const
StunMessage
*
msg
,
StunAttribute
type
)
{
{
const
void
*
ptr
;
const
void
*
ptr
;
uint16_t
len
;
uint16_t
len
=
0
;
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
if
(
ptr
==
NULL
)
if
(
ptr
==
NULL
)
...
@@ -141,7 +141,7 @@ stun_message_find32 (const StunMessage *msg, StunAttribute type,
...
@@ -141,7 +141,7 @@ stun_message_find32 (const StunMessage *msg, StunAttribute type,
uint32_t
*
pval
)
uint32_t
*
pval
)
{
{
const
void
*
ptr
;
const
void
*
ptr
;
uint16_t
len
;
uint16_t
len
=
0
;
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
if
(
ptr
==
NULL
)
if
(
ptr
==
NULL
)
...
@@ -164,7 +164,7 @@ stun_message_find64 (const StunMessage *msg, StunAttribute type,
...
@@ -164,7 +164,7 @@ stun_message_find64 (const StunMessage *msg, StunAttribute type,
uint64_t
*
pval
)
uint64_t
*
pval
)
{
{
const
void
*
ptr
;
const
void
*
ptr
;
uint16_t
len
;
uint16_t
len
=
0
;
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
if
(
ptr
==
NULL
)
if
(
ptr
==
NULL
)
...
@@ -187,7 +187,7 @@ stun_message_find_string (const StunMessage *msg, StunAttribute type,
...
@@ -187,7 +187,7 @@ stun_message_find_string (const StunMessage *msg, StunAttribute type,
char
*
buf
,
size_t
buflen
)
char
*
buf
,
size_t
buflen
)
{
{
const
unsigned
char
*
ptr
;
const
unsigned
char
*
ptr
;
uint16_t
len
;
uint16_t
len
=
0
;
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
if
(
ptr
==
NULL
)
if
(
ptr
==
NULL
)
...
@@ -207,7 +207,7 @@ stun_message_find_addr (const StunMessage *msg, StunAttribute type,
...
@@ -207,7 +207,7 @@ stun_message_find_addr (const StunMessage *msg, StunAttribute type,
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
)
struct
sockaddr
*
addr
,
socklen_t
*
addrlen
)
{
{
const
uint8_t
*
ptr
;
const
uint8_t
*
ptr
;
uint16_t
len
;
uint16_t
len
=
0
;
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
ptr
=
stun_message_find
(
msg
,
type
,
&
len
);
if
(
ptr
==
NULL
)
if
(
ptr
==
NULL
)
...
@@ -289,7 +289,7 @@ stun_message_find_xor_addr_full (const StunMessage *msg, StunAttribute type,
...
@@ -289,7 +289,7 @@ stun_message_find_xor_addr_full (const StunMessage *msg, StunAttribute type,
StunMessageReturn
StunMessageReturn
stun_message_find_error
(
const
StunMessage
*
msg
,
int
*
code
)
stun_message_find_error
(
const
StunMessage
*
msg
,
int
*
code
)
{
{
uint16_t
alen
;
uint16_t
alen
=
0
;
const
uint8_t
*
ptr
=
stun_message_find
(
msg
,
STUN_ATTRIBUTE_ERROR_CODE
,
&
alen
);
const
uint8_t
*
ptr
=
stun_message_find
(
msg
,
STUN_ATTRIBUTE_ERROR_CODE
,
&
alen
);
uint8_t
class
,
number
;
uint8_t
class
,
number
;
...
...
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