Commit b3717a20 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Do not print extra STRING_CR on successfull command.

parent a5b2b256
......@@ -493,11 +493,12 @@ static char *MessageToString( vlm_message_t *message, int i_level )
else if( !i_level && !message->i_child && !message->psz_value )
{
/* A command is successful. Don't write anything */
return strdup( STRING_CR STRING_TAIL );
return strdup( /*STRING_CR*/ STRING_TAIL );
}
i_message += strlen( message->psz_name ) + i_level * sizeof( " " ) + 1;
psz_message = malloc( i_message ); *psz_message = 0;
psz_message = malloc( i_message );
*psz_message = 0;
for( i = 0; i < i_level; i++ ) strcat( psz_message, " " );
strcat( psz_message, message->psz_name );
......
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