composetable: Add a missing NULL check

gtk_compose_table_parse can return NULL. Handle it.
This commit is contained in:
Matthias Clasen 2022-05-02 15:39:03 +08:00
parent b3f04413b4
commit 5df314fa8f

View File

@ -1150,7 +1150,8 @@ parse:
* is probably a copy of the system one, we take steps to keep things working,
* and thell the user about it.
*/
if (found_old_cache && !found_include && compose_table->n_sequences < 100)
if (found_old_cache && !found_include &&
compose_table != NULL && compose_table->n_sequences < 100)
{
if (rewrite_compose_file (compose_file))
{