diff options
-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; /* |