core: fix crash when creating two bars with same name but different case (bug #41418)
This commit is contained in:
parent
219f75b225
commit
9db356bd9b
@ -11,6 +11,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
|
||||
== Version 0.4.3 (under dev)
|
||||
|
||||
* core: fix crash when creating two bars with same name but different case
|
||||
(bug #41418)
|
||||
* core: fix display of read marker when all buffer lines are unread and that
|
||||
option weechat.look.read_marker_always_show is on
|
||||
* core: fix memory leak in regex matching when evaluating expression
|
||||
|
@ -520,7 +520,7 @@ gui_bar_search (const char *name)
|
||||
|
||||
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
|
||||
{
|
||||
if (strcmp (ptr_bar->name, name) == 0)
|
||||
if (string_strcasecmp (ptr_bar->name, name) == 0)
|
||||
return ptr_bar;
|
||||
}
|
||||
|
||||
@ -550,7 +550,7 @@ gui_bar_search_with_option_name (const char *option_name)
|
||||
{
|
||||
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
|
||||
{
|
||||
if (strcmp (ptr_bar->name, bar_name) == 0)
|
||||
if (string_strcasecmp (ptr_bar->name, bar_name) == 0)
|
||||
break;
|
||||
}
|
||||
free (bar_name);
|
||||
@ -1342,7 +1342,7 @@ gui_bar_default_items (const char *bar_name)
|
||||
|
||||
for (i = 0; gui_bar_items_default_for_bars[i][0]; i++)
|
||||
{
|
||||
if (strcmp (gui_bar_items_default_for_bars[i][0], bar_name) == 0)
|
||||
if (string_strcasecmp (gui_bar_items_default_for_bars[i][0], bar_name) == 0)
|
||||
return gui_bar_items_default_for_bars[i][1];
|
||||
}
|
||||
|
||||
@ -2078,7 +2078,7 @@ gui_bar_update (const char *name)
|
||||
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
|
||||
{
|
||||
if (!CONFIG_BOOLEAN(ptr_bar->options[GUI_BAR_OPTION_HIDDEN])
|
||||
&& (strcmp (ptr_bar->name, name) == 0))
|
||||
&& (string_strcasecmp (ptr_bar->name, name) == 0))
|
||||
{
|
||||
gui_bar_ask_refresh (ptr_bar);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user