From 4183b2ac3832cdc2055d7eb3ed7121a9ea91085c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 Dec 2004 04:51:56 +0000 Subject: r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile (This used to be commit 0928b1f5b68c858922c3ea6c27ed03b5091c6221) --- source4/client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/client') diff --git a/source4/client/client.c b/source4/client/client.c index b438e986cd..d9e995f180 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -2671,7 +2671,7 @@ static char **completion_fn(const char *text, int start, int end) return NULL; } else { char **matches; - int i, len, samelen, count=1; + int i, len, samelen = 0, count=1; matches = (char **)malloc(sizeof(matches[0])*MAX_COMPLETIONS); if (!matches) return NULL; -- cgit