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:
scott 1998-02-21 17:12:15 +00:00
parent 800afc55d7
commit 75a8405430
8 changed files with 36 additions and 0 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

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