From 2b43bc1c44e26d1ba9c6e25968c6284d448638f4 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 21 Jan 2021 19:55:51 +0100 Subject: cppcheck warning: null pointer redundant check --- plugins/a11y-keyboard/msd-a11y-keyboard-manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c index e383ebd..fa8d0df 100644 --- a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c +++ b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c @@ -202,8 +202,7 @@ get_xkb_desc_rec (MsdA11yKeyboardManager *manager) } gdk_x11_display_error_trap_pop_ignored (display); - g_return_val_if_fail (desc != NULL, NULL); - g_return_val_if_fail (desc->ctrls != NULL, NULL); + g_return_val_if_fail (desc != NULL && desc->ctrls != NULL, NULL); g_return_val_if_fail (status == Success, NULL); return desc; -- cgit v1.2.1