From 44fa85fd60baf1dba4e4858ee23b9ebbd7e13ef9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 29 May 2003 15:44:35 +0000 Subject: Don't crash when doing namecompletion in smbclient. Fixes debian bug #194776 (This used to be commit f130b4f2a143ef7507d7267ec12a11c1d91f0457) --- source3/client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/client/client.c b/source3/client/client.c index 690cc99f7f..69037ca1db 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2328,7 +2328,7 @@ 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) -- cgit