ClutterText: Cannot pass NULL string to clutter_text_set_text()
authorDominique Bureau <burdo@touchtunes.com>
Fri, 11 May 2012 17:26:50 +0000 (13:26 -0400)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 21 May 2012 10:30:22 +0000 (11:30 +0100)
commita2d40fcf8c2b839fc8a202442232a7398513a66a
treeeb890bb3b450650875ad7b3a8e561b56a6ea3154
parentdd61be7c2ea238432524dea16b04baf424c2cd36
ClutterText: Cannot pass NULL string to clutter_text_set_text()

Passing a NULL buffer to clutter_text_set_text() does not behave the same
way as passing an empty string "" (as specified in the documentation).
This was working as expected previously, but somehow the behaviour changed
at some point and created 2 new issues:
- Passing a NULL pointer will not reset the string
- If the ClutterText is editable, it will segfault in strcmp

Validations have been added to prevent this.

https://bugzilla.gnome.org/show_bug.cgi?id=675890
clutter/clutter-text.c