mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
handle the case where the ibus address can't be found. (prevents nasty crash)
This commit is contained in:
parent
64237d7f01
commit
c7ec9c1d85
@ -462,6 +462,9 @@ SDL_IBus_Init(void)
|
|||||||
ibus_addr_file = SDL_strdup(addr_file);
|
ibus_addr_file = SDL_strdup(addr_file);
|
||||||
|
|
||||||
addr = IBus_ReadAddressFromFile(addr_file);
|
addr = IBus_ReadAddressFromFile(addr_file);
|
||||||
|
if (!addr) {
|
||||||
|
return SDL_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (inotify_fd < 0) {
|
if (inotify_fd < 0) {
|
||||||
inotify_fd = inotify_init();
|
inotify_fd = inotify_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user