Skip to content

Commit

Permalink
handle the case where the ibus address can't be found. (prevents nast…
Browse files Browse the repository at this point in the history
…y crash)
  • Loading branch information
urkle committed Apr 1, 2015
1 parent 64237d7 commit c7ec9c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/linux/SDL_ibus.c
Expand Up @@ -462,6 +462,9 @@ SDL_IBus_Init(void)
ibus_addr_file = SDL_strdup(addr_file);

addr = IBus_ReadAddressFromFile(addr_file);
if (!addr) {
return SDL_FALSE;
}

if (inotify_fd < 0) {
inotify_fd = inotify_init();
Expand Down

0 comments on commit c7ec9c1

Please sign in to comment.