diff options
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 918b435b2d..69037ca1db 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2328,11 +2328,9 @@ static char **completion_fn(const char *text, int start, int end) if (sp == NULL) return NULL; - for (i = 0; commands[i].description; 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; |