summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 09:10:23 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 09:10:23 +0100
commit3e5e47d00dc0afe968bb0291869d958db5e6f3b7 (patch)
tree0491994c2469802a96cb7ce8c932d2af56f525b8 /plugins
parentc89c81f60ffd4951aa660ea3f48bac32d0fbe51d (diff)
config_fail may have been uninitialized
Diffstat (limited to 'plugins')
-rw-r--r--plugins/checksum/checksum.c2
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);
 		}
 	}