From 3e5e47d00dc0afe968bb0291869d958db5e6f3b7 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Wed, 12 Jan 2011 09:10:23 +0100 Subject: [PATCH] config_fail may have been uninitialized --- plugins/checksum/checksum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }