From 22238c32005698664351f7755b4195c1a602eb67 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 30 May 2019 20:24:51 +1000 Subject: [PATCH] [client] fix invalid access on early termination --- VERSION | 2 +- client/src/app.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c1c686a9..e81baf92 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-rc4-0-g026bdb00f2+1 \ No newline at end of file +B1-rc5-0-g780bb248f7+1 \ No newline at end of file diff --git a/client/src/app.c b/client/src/app.c index b2684ee4..7dd2149a 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -66,7 +66,7 @@ KeybindHandle app_register_keybind(SDL_Scancode key, SuperEventFn callback, void void app_release_keybind(KeybindHandle * handle) { - if (!handle) + if (!*handle) return; state.bindings[(*handle)->key] = NULL;