Skip to content

Commit

Permalink
Fixed compiler warning about missing field initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 4, 2016
1 parent 5d5127c commit 1051dce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/linux/SDL_ibus.c
Expand Up @@ -42,7 +42,7 @@ static const char IBUS_INTERFACE[] = "org.freedesktop.IBus";
static const char IBUS_INPUT_INTERFACE[] = "org.freedesktop.IBus.InputContext";

static char *input_ctx_path = NULL;
static SDL_Rect ibus_cursor_rect = {0};
static SDL_Rect ibus_cursor_rect = { 0, 0, 0, 0 };
static DBusConnection *ibus_conn = NULL;
static char *ibus_addr_file = NULL;
int inotify_fd = -1, inotify_wd = -1;
Expand Down Expand Up @@ -341,7 +341,9 @@ IBus_SetupConnection(SDL_DBusContext *dbus, const char* addr)
const char *path = NULL;
SDL_bool result = SDL_FALSE;
DBusMessage *msg;
DBusObjectPathVTable ibus_vtable = {0};
DBusObjectPathVTable ibus_vtable;

SDL_zero(ibus_vtable);
ibus_vtable.message_function = &IBus_MessageHandler;

ibus_conn = dbus->connection_open_private(addr, NULL);
Expand Down

0 comments on commit 1051dce

Please sign in to comment.