# HG changeset patch # User Ryan C. Gordon # Date 1188667524 0 # Node ID ca992789c798533d5d24a041331fefe5c674c93a # Parent 7ea10b80eda34bf0b7d641f4116e7b9045f560b4 ANSI C fix (all variables need to be defined at start of block). Fixes Bugzilla #487. diff -r 7ea10b80eda3 -r ca992789c798 src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Tue Aug 21 06:52:33 2007 +0000 +++ b/src/video/x11/SDL_x11events.c Sat Sep 01 17:25:24 2007 +0000 @@ -235,11 +235,11 @@ Uint8 const *const end_of_input = utf8 + utf8_length - 1; while (utf8 <= end_of_input) { + Uint8 const c = *utf8; if (p >= max_ptr) { /* No more output space. */ return -1; } - Uint8 const c = *utf8; if (c < 0x80) { /* One byte ASCII. */ *p++ = c;