summaryrefslogtreecommitdiffstats
path: root/cli/src/registry.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/registry.c')
-rw-r--r--cli/src/registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/registry.c b/cli/src/registry.c
index 3bdc8929abb..5b63e82b164 100644
--- a/cli/src/registry.c
+++ b/cli/src/registry.c
@@ -268,7 +268,7 @@ cli_getunamb (const char *tok, void **choices, cli_selector_t sel)
unsigned mn = 0;
void *ret = NULL;
- if (!choices || !*tok)
+ if (!choices || !tok || !*tok)
return NULL;
for (wcon = choices; *wcon; wcon++) {