Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
belle-sip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
belle-sip
Commits
d8cee801
Commit
d8cee801
authored
Jun 05, 2014
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in belle_sdp_attribute_get_value()
parent
e4185972
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
belle_sdp_impl.c
src/belle_sdp_impl.c
+5
-2
No files found.
src/belle_sdp_impl.c
View file @
d8cee801
...
...
@@ -102,14 +102,17 @@ const char *belle_sdp_attribute_get_value(belle_sdp_attribute_t *attribute) {
char
*
ret
;
char
*
end
;
if
(
attribute
->
unparsed_value
)
{
belle_sip_free
(
attribute
->
unparsed_value
);
attribute
->
unparsed_value
=
NULL
;
}
attribute
->
unparsed_value
=
belle_sip_object_to_string
(
attribute
);
ret
=
attribute
->
unparsed_value
;
ret
+=
strlen
(
attribute
->
name
)
+
3
;
/* "a=" + name + semicolon */
for
(;
*
ret
==
' '
;
ret
++
)
{};
/* skip spaces */
ret
+=
strlen
(
attribute
->
name
)
+
2
;
/* "a=" + name*/
if
(
*
ret
==
':'
)
ret
++
;
for
(;
*
ret
==
' '
;
ret
++
)
{};
/* skip eventual spaces */
return
ret
;
}
unsigned
int
belle_sdp_attribute_has_value
(
belle_sdp_attribute_t
*
attribute
)
{
...
...
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