commit 81c96cec89dd280cab71170f50b9c088476d263c parent fd0132256402069a3f045d677f53cc2a1b5340e2 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 3 Jul 2021 11:44:18 +0200 check key for NULL dereference, just in case This matches the check pattern in other parts of the code. Diffstat:M svkbd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --dropbox a/svkbd.c b/svkbd.c @@ -643,7 +643,8 @@ unpress(Key *k, KeySym buttonmod) } } - if (enableoverlays && currentoverlay != -1 && !IsModifierKey(k->keysym)) { + if (enableoverlays && currentoverlay != -1 && + (k == NULL || !IsModifierKey(k->keysym))) { if (releaseprotect) { releaseprotect = 0; } else {