From 004b7d56c3e44f2dfbd943b8843e1015a3e77230 Mon Sep 17 00:00:00 2001 From: fliep Date: Mon, 25 May 2009 18:46:49 +0000 Subject: [PATCH] glk_set_window(NULL) should not be allowed --- libchimara/window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libchimara/window.c b/libchimara/window.c index 5fd2447..4db7706 100644 --- a/libchimara/window.c +++ b/libchimara/window.c @@ -873,12 +873,13 @@ glk_window_clear(winid_t win) * @win: A window. * * Sets the current stream to @win's window stream. It is exactly equivalent to - * #glk_stream_set_current(#glk_window_get_stream(@win)). + * |[ #glk_stream_set_current(#glk_window_get_stream(@win)) ]| + * See Streams. */ void glk_set_window(winid_t win) { - VALID_WINDOW_OR_NULL(win, return); + VALID_WINDOW(win, return); glk_stream_set_current( glk_window_get_stream(win) ); } -- 2.30.2