mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
Add non-NULL check for gtk_editable_set_text()
This commit is contained in:
parent
1e5a9eb7b9
commit
1237fd9ab5
@ -597,6 +597,7 @@ gtk_editable_set_text (GtkEditable *editable,
|
||||
int pos;
|
||||
|
||||
g_return_if_fail (GTK_IS_EDITABLE (editable));
|
||||
g_return_if_fail (text != NULL);
|
||||
|
||||
g_object_freeze_notify (G_OBJECT (editable));
|
||||
gtk_editable_delete_text (editable, 0, -1);
|
||||
|
Loading…
Reference in New Issue
Block a user