From def72ed84aa3453bbf02e7879926ba67f27a807a Mon Sep 17 00:00:00 2001 From: project-repo Date: Mon, 7 Sep 2020 13:58:33 +0200 Subject: [PATCH] Fix potential NPD --- keybinding.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keybinding.c b/keybinding.c index 81468ee..a061bc2 100644 --- a/keybinding.c +++ b/keybinding.c @@ -544,6 +544,9 @@ keybinding_split_output(struct cg_output *output, bool vertical) { static void keybinding_close_view(struct cg_view *view) { + if(view == NULL) { + return; + } view->impl->close(view); }