From a4458a7002e80c36510dc1c61ae65f012da59985 Mon Sep 17 00:00:00 2001 From: Alex Baines Date: Fri, 20 Mar 2015 19:47:03 +0000 Subject: [PATCH] Fix DBus error message if IBus couldn't be initialized. --- src/core/linux/SDL_ibus.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/linux/SDL_ibus.c b/src/core/linux/SDL_ibus.c index 6b84be2e9..e901bece3 100644 --- a/src/core/linux/SDL_ibus.c +++ b/src/core/linux/SDL_ibus.c @@ -479,8 +479,10 @@ SDL_IBus_Init(void) inotify_wd = inotify_add_watch(inotify_fd, addr_file, IN_CREATE | IN_MODIFY); SDL_free(addr_file); - result = IBus_SetupConnection(dbus, addr); - SDL_free(addr); + if (addr) { + result = IBus_SetupConnection(dbus, addr); + SDL_free(addr); + } } return result;