mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Added a NULL test in gtk_entry_set_text. (Fielded a report on #gimp
that a NULL argument caused a core dump.) --sg
This commit is contained in:
parent
800afc55d7
commit
75a8405430
@ -1,3 +1,8 @@
|
||||
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
NULL text pointer.
|
||||
|
||||
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkobject.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
NULL text pointer.
|
||||
|
||||
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkobject.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
NULL text pointer.
|
||||
|
||||
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkobject.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
NULL text pointer.
|
||||
|
||||
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkobject.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
NULL text pointer.
|
||||
|
||||
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkobject.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
NULL text pointer.
|
||||
|
||||
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkobject.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Feb 21 12:06:11 1998 Scott Goehring <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
NULL text pointer.
|
||||
|
||||
Sat Feb 21 14:49:17 1998 Tim Janik <timj@gimp.org>
|
||||
|
||||
* gtk/gtkobject.h:
|
||||
|
@ -399,6 +399,7 @@ gtk_entry_set_text (GtkEntry *entry,
|
||||
|
||||
g_return_if_fail (entry != NULL);
|
||||
g_return_if_fail (GTK_IS_ENTRY (entry));
|
||||
g_return_if_fail (text != NULL);
|
||||
|
||||
gtk_real_entry_delete_text (entry, 0, entry->text_length);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user