diff options
author | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-01-12 09:10:23 +0100 |
---|---|---|
committer | berkeviktor@aol.com <berkeviktor@aol.com> | 2011-01-12 09:10:23 +0100 |
commit | 3e5e47d00dc0afe968bb0291869d958db5e6f3b7 (patch) | |
tree | 0491994c2469802a96cb7ce8c932d2af56f525b8 /plugins/checksum/checksum.c | |
parent | c89c81f60ffd4951aa660ea3f48bac32d0fbe51d (diff) |
config_fail may have been uninitialized
Diffstat (limited to 'plugins/checksum/checksum.c')
-rw-r--r-- | plugins/checksum/checksum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c index 0e3f2404..97a72e86 100644 --- a/plugins/checksum/checksum.c +++ b/plugins/checksum/checksum.c @@ -122,6 +122,7 @@ init () FILE * file_out; char buffer[512]; + config_fail = 0; snprintf (buffer, sizeof (buffer), "%s/checksum.conf", xchat_get_info (ph, "xchatdirfs")); if ((file_in = fopen (buffer, "r")) == NULL) @@ -131,7 +132,6 @@ init () config_fail = 1; } else { - config_fail = 0; fprintf (file_out, "%llu\n", (unsigned long long) DEFAULT_MAX_HASH_SIZE); } } |