diff options
author | rbuj <[email protected]> | 2021-01-21 19:55:51 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-01-31 17:11:58 +0100 |
commit | 2b43bc1c44e26d1ba9c6e25968c6284d448638f4 (patch) | |
tree | 7737b866d625088c86d1b4ce18c7f47ac37d8ceb /plugins/a11y-keyboard/msd-a11y-keyboard-manager.c | |
parent | edb0fa1a1250176684b070f6444469af146dbd8e (diff) | |
download | mate-settings-daemon-2b43bc1c44e26d1ba9c6e25968c6284d448638f4.tar.bz2 mate-settings-daemon-2b43bc1c44e26d1ba9c6e25968c6284d448638f4.tar.xz |
cppcheck warning: null pointer redundant check
Diffstat (limited to 'plugins/a11y-keyboard/msd-a11y-keyboard-manager.c')
-rw-r--r-- | plugins/a11y-keyboard/msd-a11y-keyboard-manager.c | 3 |
1 files changed, 1 insertions, 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; |