From b7583c188ed53f29314b816e23d5349c57d0f03b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 4 May 2002 23:07:43 +0000 Subject: 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 --- src/fe-common/core/fe-windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3