Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
6226ab46
Commit
6226ab46
authored
Sep 18, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: fix shadowing and wrong variable type
asprintf() returns an int, not a char *.
parent
adced89b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/vlm.c
lib/vlm.c
+2
-2
No files found.
lib/vlm.c
View file @
6226ab46
...
...
@@ -286,7 +286,7 @@ static char* recurse_answer( vlm_message_t *p_answer, const char* psz_delim,
strcmp
(
aw_child
->
psz_name
,
"inputs"
)
==
0
||
strcmp
(
aw_child
->
psz_name
,
"options"
)
==
0
)
{
char
*
psz_recurse
=
recurse_answer
(
aw_child
,
psz_childdelim
,
1
)
,
char
*
psz_recurse
=
recurse_answer
(
aw_child
,
psz_childdelim
,
1
)
;
i_success
=
asprintf
(
&
psz_tmp
,
"%s[%s%s%s]%c%s"
,
psz_response
,
psz_childdelim
,
psz_recurse
,
psz_delim
,
c_comma
,
psz_delim
);
...
...
@@ -300,7 +300,7 @@ static char* recurse_answer( vlm_message_t *p_answer, const char* psz_delim,
*/
else
{
char
*
psz_recurse
=
recurse_answer
(
aw_child
,
psz_childdelim
,
0
)
,
char
*
psz_recurse
=
recurse_answer
(
aw_child
,
psz_childdelim
,
0
)
;
i_success
=
asprintf
(
&
psz_tmp
,
"%s{%s%s%s%s}%c%s"
,
psz_response
,
psz_childdelim
,
psz_nametag
,
psz_recurse
,
psz_delim
,
c_comma
,
psz_delim
);
...
...
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