diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-08 12:09:26 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-08 12:09:26 +0200 |
commit | 1aeea38355f94f2f19fa1d4d412b04be5822d58a (patch) | |
tree | 6da8a8ac3bc668aa0e281a58945b3d5c1ad67980 /src | |
parent | 9ce666fc3101bb90f87630f4db10d11e89133ebb (diff) | |
download | weechat-1aeea38355f94f2f19fa1d4d412b04be5822d58a.zip |
core: fix buffer name comparison in function gui_buffer_set_name
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui-buffer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 144d3182d..edf083525 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -1631,11 +1631,7 @@ gui_buffer_set_day_change (struct t_gui_buffer *buffer, int day_change) void gui_buffer_set_name (struct t_gui_buffer *buffer, const char *name) { - if (!buffer || !name || !name[0]) - return; - - /* same name? */ - if (buffer->name && (strcmp (buffer->name, name) == 0)) + if (!buffer || !name || !name[0] || (string_strcmp (buffer->name, name) == 0)) return; /* |