Add non-NULL check for gtk_editable_set_text()

This commit is contained in:
Arjan Molenaar 2024-01-13 21:42:19 +01:00
parent 1e5a9eb7b9
commit 1237fd9ab5

View File

@ -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);