buildertool: Be more robust

A lot of crashes in simplify can be avoided
if get_class_name does not return NULL.
This commit is contained in:
Matthias Clasen 2021-12-13 14:19:12 -05:00
parent 5222dc0cd1
commit 6d24a2c942

View File

@ -486,7 +486,7 @@ get_attribute_value (Element *element,
return element->attribute_values[i];
}
return NULL;
return "";
}
static void
@ -549,7 +549,7 @@ get_class_name (Element *element)
return get_attribute_value (parent, "class");
}
return NULL;
return "";
}
static gboolean