From 3219c5b9f29a8058c6fdde597648e5cfe04d2741 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 30 Oct 2013 14:03:21 +0100 Subject: [PATCH] (PS3/XDK) Set input and input_data pointers to NULL in context files --- gfx/context/ps3_ctx.c | 6 +++++- gfx/context/xdk_ctx.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gfx/context/ps3_ctx.c b/gfx/context/ps3_ctx.c index d1ea16c19a..75af3b32b5 100644 --- a/gfx/context/ps3_ctx.c +++ b/gfx/context/ps3_ctx.c @@ -290,7 +290,11 @@ static void gfx_ctx_destroy(void) #endif } -static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data) { } +static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data) +{ + *input = NULL; + *input_data = NULL; +} static bool gfx_ctx_bind_api(enum gfx_ctx_api api, unsigned major, unsigned minor) { diff --git a/gfx/context/xdk_ctx.c b/gfx/context/xdk_ctx.c index 2af16d9171..02130e20c9 100644 --- a/gfx/context/xdk_ctx.c +++ b/gfx/context/xdk_ctx.c @@ -237,7 +237,11 @@ static void gfx_ctx_xdk_destroy(void) } } -static void gfx_ctx_xdk_input_driver(const input_driver_t **input, void **input_data) { } +static void gfx_ctx_xdk_input_driver(const input_driver_t **input, void **input_data) +{ + *input = NULL; + *input_data = NULL; +} static bool gfx_ctx_xdk_bind_api(enum gfx_ctx_api api, unsigned major, unsigned minor) {