summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-05-04 23:07:43 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-05-04 23:07:43 +0000
commitb7583c188ed53f29314b816e23d5349c57d0f03b (patch)
tree555b8dc7aadb80ec4dd9b611664a412c4f1f4169
parent8a7bc3b66722597e31fae28b199bc46da164f3f3 (diff)
downloadirssi-b7583c188ed53f29314b816e23d5349c57d0f03b.zip
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
-rw-r--r--src/fe-common/core/fe-windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c
index 970bfaa3..af8e4297 100644
--- a/src/fe-common/core/fe-windows.c
+++ b/src/fe-common/core/fe-windows.c
@@ -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);
}