1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

Fix crash when setting wrong value in option irc.server.xxx.sasl_mechanism (bug #32670)

This commit is contained in:
Sebastien Helleu
2011-03-03 22:06:08 +01:00
parent 3d8553316f
commit e8df46c005
2 changed files with 19 additions and 1 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.5-dev, 2011-03-02
v0.3.5-dev, 2011-03-03
Version 0.3.5 (under dev!)
@@ -28,6 +28,8 @@ Version 0.3.5 (under dev!)
* core: dynamically allocate color pairs (extended colors can be used without
being added with command "/color")
* core: allow background for nick colors (using ":")
* irc: fix crash when setting wrong value in option
irc.server.xxx.sasl_mechanism (bug #32670)
* irc: add new option irc.look.color_nicks_in_nicklist
* irc: fix crash when completing /part command on a non-irc buffer (bug #32402)
* irc: add many missing commands for target buffer (options irc.msgbuffer.xxx)
+16
View File
@@ -1177,6 +1177,14 @@ config_file_option_set (struct t_config_option *option, const char *value,
else
rc = WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
}
else
{
if (old_value_was_null)
{
free (option->value);
option->value = NULL;
}
}
}
else
{
@@ -1226,6 +1234,14 @@ config_file_option_set (struct t_config_option *option, const char *value,
else
rc = WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
}
else
{
if (old_value_was_null)
{
free (option->value);
option->value = NULL;
}
}
}
}
break;