May have fixed the Linux build again

main
Sam Lantinga 2014-08-23 19:06:54 -07:00
parent fe4bc5ab25
commit 9d54a90098
1 changed files with 5 additions and 3 deletions

View File

@ -227,6 +227,8 @@ IBus_GetDBusAddressFilename(void)
const char *conf_env; const char *conf_env;
char *key; char *key;
char file_path[PATH_MAX]; char file_path[PATH_MAX];
const char *host;
char *disp_num, *screen_num;
if (ibus_addr_file) { if (ibus_addr_file) {
return SDL_strdup(ibus_addr_file); return SDL_strdup(ibus_addr_file);
@ -253,9 +255,9 @@ IBus_GetDBusAddressFilename(void)
display = SDL_strdup(disp_env); display = SDL_strdup(disp_env);
} }
const char *host = display; host = display;
char *disp_num = SDL_strrchr(display, ':'), disp_num = SDL_strrchr(display, ':');
*screen_num = SDL_strrchr(display, '.'); screen_num = SDL_strrchr(display, '.');
if (!disp_num) { if (!disp_num) {
SDL_free(display); SDL_free(display);