Commit 3d298bdc authored by Rémi Duraffort's avatar Rémi Duraffort

vlm: simplify and cleanup.

parent dacadc6e
......@@ -232,10 +232,9 @@ static char* recurse_answer( vlm_message_t *p_answer, const char* psz_delim,
vlm_message_t *aw_child, **paw_child;
i_success = asprintf( &psz_childdelim, "%s\t", psz_delim);
if( i_success == -1 )
return psz_response;
/* starting with the children of root node */
if( i_success != -1 && p_answer->i_child )
{
paw_child = p_answer->child;
aw_child = *( paw_child );
/* Iterate over children */
......@@ -326,7 +325,6 @@ static char* recurse_answer( vlm_message_t *p_answer, const char* psz_delim,
paw_child++;
aw_child = *( paw_child );
}
}
free( psz_nametag );
free( psz_childdelim );
if( i_success == -1 )
......
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