From: Matthias Clasen Date: Mon, 2 May 2022 07:39:03 +0000 (+0800) Subject: composetable: Add a missing NULL check X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~235^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5df314fa8f4ae6703876ed82bac340cce0495141;p=gtk4.git composetable: Add a missing NULL check gtk_compose_table_parse can return NULL. Handle it. --- diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c index 7951b04c4d..4ec357fc97 100644 --- a/gtk/gtkcomposetable.c +++ b/gtk/gtkcomposetable.c @@ -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)) {