summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 690cc99f7f..918b435b2d 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2328,9 +2328,11 @@ static char **completion_fn(const char *text, int start, int end)
if (sp == NULL)
return NULL;
- for (i = 0; commands[i].name; i++)
+ for (i = 0; commands[i].description; i++) {
if ((strncmp(commands[i].name, text, sp - buf) == 0) && (commands[i].name[sp - buf] == 0))
break;
+ }
+
if (commands[i].name == NULL)
return NULL;