mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
fix crash when empty string given on ctrl port
This commit is contained in:
parent
f0a5fa6034
commit
5365ea4f4e
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ cmd_lock( int socket, const char** args )
|
|||
static bool
|
||||
cmd_help( int socket, const char** args )
|
||||
{
|
||||
if ( 0 == strcmp( "help", args[1] ) ) {
|
||||
if ( NULL != args[1] && 0 == strcmp( "help", args[1] ) ) {
|
||||
print_to_sock( socket, true, "* %s -- prints this", args[0] );
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue