diff options
author | Jeremy Allison <jra@samba.org> | 2004-11-24 01:03:23 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-11-24 01:03:23 +0000 |
commit | 9188035c08af8384117d6f8f338f3e6b2bdf90be (patch) | |
tree | 2826e368bc034a627f9b75fec90f1859275b4efd /source/client | |
parent | 431d2e94518fd14a400e7496217f59fdb6dac08c (diff) | |
download | samba-9188035c08af8384117d6f8f338f3e6b2bdf90be.tar.gz samba-9188035c08af8384117d6f8f338f3e6b2bdf90be.tar.xz samba-9188035c08af8384117d6f8f338f3e6b2bdf90be.zip |
r3931: Fix all "may be used uninitialized" and "shadow" warnings.
Jeremy.
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/client/client.c b/source/client/client.c index 29635e4de9f..8c43f4e16e4 100644 --- a/source/client/client.c +++ b/source/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); |