From: fliep Date: Mon, 25 May 2009 18:46:49 +0000 (+0000) Subject: glk_set_window(NULL) should not be allowed X-Git-Tag: v0.9~373 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=004b7d56c3e44f2dfbd943b8843e1015a3e77230;hp=48c89dc9941a5a349f9dc5099baa4dcc54bd6169;p=projects%2Fchimara%2Fchimara.git glk_set_window(NULL) should not be allowed --- 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) ); }