Commit 6226ab46 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lib: fix shadowing and wrong variable type

asprintf() returns an int, not a char *.
parent adced89b
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment