diff options
author | Guillaume Laurent <glaurent@src.gnome.org> | 1999-01-17 19:02:53 +0000 |
---|---|---|
committer | Guillaume Laurent <glaurent@src.gnome.org> | 1999-01-17 19:02:53 +0000 |
commit | 5af447fa074bbe241aca0a9fb9804e75817c98bd (patch) | |
tree | cb0a77f6586393eb527a367e41a831622d793969 | |
parent | 377579c2ef8cd1b053e783d0b3f05057d37fe783 (diff) | |
download | gdk-pixbuf-5af447fa074bbe241aca0a9fb9804e75817c98bd.tar.gz |
Added a g_return_val_if_fail() in gtk_label_parse_uline() to
prevent from 'string' arg being NULL.
-rw-r--r-- | gtk/gtklabel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 13e9679fb..4da3e14c3 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -957,6 +957,8 @@ gtk_label_parse_uline (GtkLabel *label, gint length, wc_length; gboolean underscore; + g_return_val_if_fail(string != NULL, GDK_VoidSymbol); + /* Convert text to wide characters */ length = strlen (string); string_wc = g_new (GdkWChar, length + 1); |