summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-08 20:56:47 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-09-08 20:56:47 +0000
commit29c304f8d22fe1566170ed1c0e2034dc10b84597 (patch)
tree6d34692fdda54a66d9282fa855d6fcd0f5310a2b /pango
parent677db04fae0af875685a71e0cedd408578071bef (diff)
parent7db68865b7560ca5d74aa6cd15656b3656ea7f42 (diff)
downloadpango-29c304f8d22fe1566170ed1c0e2034dc10b84597.tar.gz
Merge branch 'avoid-script-lang-crash' into 'master'
Don't assert in pango_language_get_scripts See merge request GNOME/pango!233
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-language.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-language.c b/pango/pango-language.c
index 575d4652..bb5ed470 100644
--- a/pango/pango-language.c
+++ b/pango/pango-language.c
@@ -662,7 +662,7 @@ pango_language_get_scripts (PangoLanguage *language,
script_for_lang,
pango_script_for_lang);
- if (!script_for_lang)
+ if (!script_for_lang || script_for_lang->scripts[0] == 0)
{
if (num_scripts)
*num_scripts = 0;