mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
window_set_name() - when setting it to "", set it NULL instead.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2752 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8a7bc3b667
commit
b7583c188e
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ void window_set_refnum(WINDOW_REC *window, int refnum)
|
|||
void window_set_name(WINDOW_REC *window, const char *name)
|
||||
{
|
||||
g_free_not_null(window->name);
|
||||
window->name = g_strdup(name);
|
||||
window->name = name == NULL || *name == '\0' ? NULL : g_strdup(name);
|
||||
|
||||
signal_emit("window name changed", 1, window);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue