diff options
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/common/command.c b/common/command.c index 0020eacf5..0b1a3fbf9 100644 --- a/common/command.c +++ b/common/command.c @@ -108,6 +108,8 @@ cmd_tbl_t *find_cmd_tbl (const char *cmd, cmd_tbl_t *table, int table_len)  	int len;  	int n_found = 0; +	if (!cmd) +		return NULL;  	/*  	 * Some commands allow length modifiers (like "cp.b");  	 * compare command name only until first dot. |