mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 19:50:18 +00:00
config_fail may have been uninitialized
This commit is contained in:
@@ -122,6 +122,7 @@ init ()
|
|||||||
FILE * file_out;
|
FILE * file_out;
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
|
|
||||||
|
config_fail = 0;
|
||||||
snprintf (buffer, sizeof (buffer), "%s/checksum.conf", xchat_get_info (ph, "xchatdirfs"));
|
snprintf (buffer, sizeof (buffer), "%s/checksum.conf", xchat_get_info (ph, "xchatdirfs"));
|
||||||
|
|
||||||
if ((file_in = fopen (buffer, "r")) == NULL)
|
if ((file_in = fopen (buffer, "r")) == NULL)
|
||||||
@@ -131,7 +132,6 @@ init ()
|
|||||||
config_fail = 1;
|
config_fail = 1;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
config_fail = 0;
|
|
||||||
fprintf (file_out, "%llu\n", (unsigned long long) DEFAULT_MAX_HASH_SIZE);
|
fprintf (file_out, "%llu\n", (unsigned long long) DEFAULT_MAX_HASH_SIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user