May have fixed the Linux build again
authorSam Lantinga <slouken@libsdl.org>
Sat, 23 Aug 2014 19:06:54 -0700
changeset 9114515603c105ab
parent 9113 9887ee47e143
child 9115 92ca74200ea5
May have fixed the Linux build again
src/core/linux/SDL_ibus.c
     1.1 --- a/src/core/linux/SDL_ibus.c	Sat Aug 23 11:00:16 2014 -0700
     1.2 +++ b/src/core/linux/SDL_ibus.c	Sat Aug 23 19:06:54 2014 -0700
     1.3 @@ -227,6 +227,8 @@
     1.4      const char *conf_env;
     1.5      char *key;
     1.6      char file_path[PATH_MAX];
     1.7 +    const char *host;
     1.8 +    char *disp_num, *screen_num;
     1.9  
    1.10      if (ibus_addr_file) {
    1.11          return SDL_strdup(ibus_addr_file);
    1.12 @@ -253,9 +255,9 @@
    1.13          display = SDL_strdup(disp_env);
    1.14      }
    1.15      
    1.16 -    const char *host = display;
    1.17 -    char *disp_num   = SDL_strrchr(display, ':'), 
    1.18 -         *screen_num = SDL_strrchr(display, '.');
    1.19 +    host = display;
    1.20 +    disp_num   = SDL_strrchr(display, ':');
    1.21 +    screen_num = SDL_strrchr(display, '.');
    1.22      
    1.23      if (!disp_num) {
    1.24          SDL_free(display);