1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

core: fix crash when "config_version" is present in a configuration file without a value

This commit is contained in:
Sébastien Helleu
2023-10-30 08:55:47 +01:00
parent 8e6647c7c9
commit aa5c03334a
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -3255,6 +3255,9 @@ config_file_parse_version (const char *version)
long number;
char *error;
if (!version)
return -1;
number = strtoll (version, &error, 10);
if (!error || error[0])
return -1;