1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16: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 bd187cd668
commit f8c459453d
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ New features::
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
* core: fix crash when a custom bar item name is already used by a default bar item (issue #2034)
* core: fix random timeouts when a lot of concurrent processes are launched with hook_process (issue #2033)
+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;