Cleanup: Quiet some picky warning from Coverity.

This commit is contained in:
Bastien Montagne 2015-09-12 16:46:27 +02:00
parent 26041f9357
commit c56deb132e
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ static void wm_keymap_patch(wmKeyMap *km, wmKeyMap *diff_km)
* exported with that user-defined shortcut already!
* Maybe we should rather keep user-defined keymaps specific to a given base one? */
if (kmi_add != NULL && kmi_add == kmi_remove) {
kmi_add = kmi_remove = NULL;
kmi_remove = NULL;
}
/* only if nothing to remove or item to remove found */
else if (!kmi_add && (!kmdi->remove_item || kmi_remove)) {