gdk_rgba_parse : do not segfault on null string

This commit is contained in:
Pierre-Yves Luyten 2014-08-27 23:14:15 +02:00
parent 459bdbb143
commit dce69904d8

View File

@ -166,6 +166,9 @@ gdk_rgba_parse (GdkRGBA *rgba,
gchar *str = (gchar *) spec;
gchar *p;
g_return_val_if_fail (spec != NULL, FALSE);
if (strncmp (str, "rgba", 4) == 0)
{
has_alpha = TRUE;