forked from AuroraMiddleware/gtk
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:
parent
5222dc0cd1
commit
6d24a2c942
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user