handle the case where the ibus address can't be found. (prevents nasty crash)

This commit is contained in:
Edward Rudd
2015-04-01 16:11:37 -04:00
parent 6c0c8cef5b
commit 555eff59b7

View File

@@ -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();