diff --git a/panels/common/cc-language-chooser.c b/panels/common/cc-language-chooser.c index ae6391a78..1c15b4333 100644 --- a/panels/common/cc-language-chooser.c +++ b/panels/common/cc-language-chooser.c @@ -188,6 +188,9 @@ match_all (gchar **words, { gchar **w; + if (str == NULL) + return FALSE; + for (w = words; *w; ++w) if (!strstr (str, *w)) return FALSE;