From: fliep Date: Wed, 7 Oct 2009 21:02:05 +0000 (+0000) Subject: Fixed bug - glk_stylehint_set doesn't loop infinitely anymore X-Git-Tag: v0.9~331 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=ac6496fd029172a5b75dc1fb6563f05f962c83f3;p=projects%2Fchimara%2Fchimara.git Fixed bug - glk_stylehint_set doesn't loop infinitely anymore --- diff --git a/libchimara/style.c b/libchimara/style.c index 2d00428..07a10fe 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -462,8 +462,8 @@ glk_stylehint_set(glui32 wintype, glui32 styl, glui32 hint, glsi32 val) gchar *tag_name = get_tag_name(styl); /* Iterate over all the window and update their styles if nessecary */ - winid_t win = glk_window_iterate(NULL, NULL); - while(win != NULL) { + winid_t win; + for(win = glk_window_iterate(NULL, NULL); win; win = glk_window_iterate(win, NULL)) { if(wintype != wintype_TextBuffer) continue; /* FIXME: add support for text grid windows */