Commit 603b805d authored by Antoine Cellerier's avatar Antoine Cellerier

Fix a bug.

parent ba96f5e2
...@@ -606,17 +606,24 @@ static void Run( intf_thread_t *p_intf ) ...@@ -606,17 +606,24 @@ static void Run( intf_thread_t *p_intf )
char *psz_myarg = strchr( psz_mycmd, ' ' ); char *psz_myarg = strchr( psz_mycmd, ' ' );
char *psz_msg; char *psz_msg;
if( !psz_myarg )
{
msg_rc( "Not enough parameters." );
}
else
{
*psz_myarg = '\0'; *psz_myarg = '\0';
psz_myarg ++; psz_myarg ++;
var_Command( p_input, psz_alias, psz_mycmd, psz_myarg, &psz_msg ); var_Command( p_intf, psz_alias, psz_mycmd, psz_myarg,
&psz_msg );
if( psz_msg ) if( psz_msg )
{ {
msg_rc( psz_msg ); msg_rc( psz_msg );
free( psz_msg ); free( psz_msg );
} }
}
free( psz_mycmd ); free( psz_mycmd );
} }
/* If the user typed a registered local command, try it */ /* If the user typed a registered local command, try it */
......
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