summaryrefslogtreecommitdiffstats
path: root/src/plugins/pwqual/test
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-06-27 18:41:04 -0400
committerGreg Hudson <ghudson@mit.edu>2013-06-27 22:37:21 -0400
commited515a396ee78361ca514be464978da38305f0fb (patch)
treef57c6a45e77d7bee10c09d464d0f2530fe9cd938 /src/plugins/pwqual/test
parenta6debff894e8b24f72675beea9ee4438bd2e8902 (diff)
downloadkrb5-ed515a396ee78361ca514be464978da38305f0fb.tar.gz
krb5-ed515a396ee78361ca514be464978da38305f0fb.tar.xz
krb5-ed515a396ee78361ca514be464978da38305f0fb.zip
Fix uninitialized variable bugs
The previous few commits introduced a couple of bugs where variables could be used without being initialized. Fix them.
Diffstat (limited to 'src/plugins/pwqual/test')
-rw-r--r--src/plugins/pwqual/test/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/pwqual/test/main.c b/src/plugins/pwqual/test/main.c
index b05048b6dc..e1e39c72af 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;