Commit e85816f8 authored by Robert Ancell's avatar Robert Ancell Committed by Georges Basile Stavracas Neto

common: Fix crash in language chooser

A report in Red Hat bugzilla [1] shows for some reason the country is set to
NULL and this causes a crash when comparing against search terms. The solution
is to handle the NULL without crashing.

parent ecb809bb
Pipeline #70914 passed with stages
in 3 minutes and 26 seconds
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment