Commit 75a84054 authored by scott's avatar scott

Added a NULL test in gtk_entry_set_text. (Fielded a report on #gimp

that a NULL argument caused a core dump.)
--sg
parent 800afc55
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:
......
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:
......
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:
......
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:
......
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:
......
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:
......
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment