From 05d3bb58cb157078df72f53bd7777e476996b466 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 16 Nov 2001 16:51:56 +0000 Subject: added assert to window_item_add(). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2034 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/window-items.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/fe-common/core/window-items.c b/src/fe-common/core/window-items.c index 649241fb..0c81c282 100644 --- a/src/fe-common/core/window-items.c +++ b/src/fe-common/core/window-items.c @@ -35,6 +35,7 @@ void window_item_add(WINDOW_REC *window, WI_ITEM_REC *item, int automatic) { g_return_if_fail(window != NULL); g_return_if_fail(item != NULL); + g_return_if_fail(item->window == NULL); item->window = window; -- cgit v1.2.3