Fix a bug that match_idents forget to end with NULL