Skip to content

Commit

Permalink
May have fixed the Linux build again
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 24, 2014
1 parent fe4bc5a commit 9d54a90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/linux/SDL_ibus.c
Expand Up @@ -227,6 +227,8 @@ IBus_GetDBusAddressFilename(void)
const char *conf_env;
char *key;
char file_path[PATH_MAX];
const char *host;
char *disp_num, *screen_num;

if (ibus_addr_file) {
return SDL_strdup(ibus_addr_file);
Expand All @@ -253,9 +255,9 @@ IBus_GetDBusAddressFilename(void)
display = SDL_strdup(disp_env);
}

const char *host = display;
char *disp_num = SDL_strrchr(display, ':'),
*screen_num = SDL_strrchr(display, '.');
host = display;
disp_num = SDL_strrchr(display, ':');
screen_num = SDL_strrchr(display, '.');

if (!disp_num) {
SDL_free(display);
Expand Down

0 comments on commit 9d54a90

Please sign in to comment.