From 90a18110e9c014ff33977be4656886b093c7e022 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 24 Nov 2004 01:03:23 +0000 Subject: r3931: Fix all "may be used uninitialized" and "shadow" warnings. Jeremy. (This used to be commit 8e979772a640bb4f00f4d72b6a9c837b8ef14333) --- source3/client/client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index 29635e4de9..8c43f4e16e 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2816,10 +2816,12 @@ 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; + if (!matches) { + return NULL; + } matches[0] = NULL; len = strlen(text); -- cgit