ANSI C fix (all variables need to be defined at start of block). SDL-1.2
authorRyan C. Gordon
Sat, 01 Sep 2007 17:25:24 +0000
branchSDL-1.2
changeset 4094ca992789c798
parent 4093 7ea10b80eda3
child 4095 f733c048a94f
ANSI C fix (all variables need to be defined at start of block).

Fixes Bugzilla #487.
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Tue Aug 21 06:52:33 2007 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Sat Sep 01 17:25:24 2007 +0000
     1.3 @@ -235,11 +235,11 @@
     1.4      Uint8 const *const end_of_input = utf8 + utf8_length - 1;
     1.5  
     1.6      while (utf8 <= end_of_input) {
     1.7 +	Uint8 const c = *utf8;
     1.8  	if (p >= max_ptr) {
     1.9  	    /* No more output space.  */
    1.10  	    return -1;
    1.11  	}
    1.12 -	Uint8 const c = *utf8;
    1.13  	if (c < 0x80) {
    1.14  	    /* One byte ASCII.  */
    1.15  	    *p++ = c;