clang/"null passed to nonnull arg": cs_manage_matches

This commit is contained in:
Justin M. Keyes 2019-01-13 16:55:14 +01:00
parent 09d21f6f0b
commit 712cf9d8f3

View File

@ -1371,6 +1371,8 @@ static char *cs_manage_matches(char **matches, char **contexts,
next = 0; next = 0;
break; break;
case Print: case Print:
assert(mp != NULL);
assert(cp != NULL);
cs_print_tags_priv(mp, cp, cnt); cs_print_tags_priv(mp, cp, cnt);
break; break;
default: // should not reach here default: // should not reach here