1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

Fix bug in config files when option name begins with '['

This commit is contained in:
Sebastien Helleu
2009-08-12 10:12:07 +02:00
parent a7d037d384
commit 24432e78e0
+1 -1
View File
@@ -2043,7 +2043,7 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
&& (ptr_line[0] != '\n'))
{
/* beginning of section */
if (ptr_line[0] == '[')
if ((ptr_line[0] == '[') && !strchr (ptr_line, '='))
{
pos = strchr (line, ']');
if (!pos)