forked from AuroraMiddleware/gtk
Added a g_return_val_if_fail() in gtk_label_parse_uline() to
prevent from 'string' arg being NULL.
This commit is contained in:
parent
377579c2ef
commit
5af447fa07
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user