Skip to content
Commit 114d5bfe authored by Benjamin Otte's avatar Benjamin Otte
Browse files

layout: Never return NULL from pango_layout_get_text()

layouts get initialized with text == NULL as an optimization (avoid a
malloc). But pango_layout_set_text (layout, NULL, 0); will set the text
to "", so it is impossible to set a NULL text.

Fxies crashers in various places that assume NULL return values never
happen.

https://bugzilla.gnome.org/show_bug.cgi?id=707659
parent 285be5bd
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