]> Pileus Git - ~andy/gtk/commitdiff
Added a NULL test in gtk_entry_set_text. (Fielded a report on #gimp
authorscott <scott>
Sat, 21 Feb 1998 17:12:15 +0000 (17:12 +0000)
committerscott <scott>
Sat, 21 Feb 1998 17:12:15 +0000 (17:12 +0000)
that a NULL argument caused a core dump.)
--sg

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentry.c

index fb9512c72f7de27f5b71423cc04b7c7b7200504c..ebae7289fef7a85dfaa8b18fe8ef3ba9bad72cfb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index fb9512c72f7de27f5b71423cc04b7c7b7200504c..ebae7289fef7a85dfaa8b18fe8ef3ba9bad72cfb 100644 (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:
index fb9512c72f7de27f5b71423cc04b7c7b7200504c..ebae7289fef7a85dfaa8b18fe8ef3ba9bad72cfb 100644 (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:
index fb9512c72f7de27f5b71423cc04b7c7b7200504c..ebae7289fef7a85dfaa8b18fe8ef3ba9bad72cfb 100644 (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:
index fb9512c72f7de27f5b71423cc04b7c7b7200504c..ebae7289fef7a85dfaa8b18fe8ef3ba9bad72cfb 100644 (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:
index fb9512c72f7de27f5b71423cc04b7c7b7200504c..ebae7289fef7a85dfaa8b18fe8ef3ba9bad72cfb 100644 (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:
index fb9512c72f7de27f5b71423cc04b7c7b7200504c..ebae7289fef7a85dfaa8b18fe8ef3ba9bad72cfb 100644 (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:
index 8ba5d8454cd9867bdb0662728e68a01572f809a9..8ea5e06c75211daed0ac1166879ec88eb023259f 100644 (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);