From ed515a396ee78361ca514be464978da38305f0fb Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 27 Jun 2013 18:41:04 -0400 Subject: Fix uninitialized variable bugs The previous few commits introduced a couple of bugs where variables could be used without being initialized. Fix them. --- src/plugins/pwqual/test/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins') diff --git a/src/plugins/pwqual/test/main.c b/src/plugins/pwqual/test/main.c index b05048b6d..e1e39c72a 100644 --- a/src/plugins/pwqual/test/main.c +++ b/src/plugins/pwqual/test/main.c @@ -77,6 +77,7 @@ init_dict(combo_moddata dict, const char *dict_file) /* Decompose the blob into newline-separated words. */ p = dict->word_block; len = sb.st_size; + count = 0; while (len > 0 && (t = memchr(p, '\n', len)) != NULL) { *t = '\0'; len -= t - p + 1; -- cgit