1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +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
+1
View File
@@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele
Bug fixes::
* core: fix crash when "config_version" is present in a configuration file without a value
* core: display an error on startup if environment variable "HOME" is not set
* ruby: fix use of NULL variable when displaying exception
+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;