summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
007a739)
It's valid for a property to be unset, so we should not crash in this
case.
if (G_VALUE_HOLDS(&val, U_TYPE_OBJECT)) {
UObject *obj = g_value_get_object(&val);
if (G_VALUE_HOLDS(&val, U_TYPE_OBJECT)) {
UObject *obj = g_value_get_object(&val);
- /* TODO: Display full object names here. */
- if (obj->pkg_name) {
+ if (obj && obj->pkg_name) {
printf(" %s", obj->pkg_name);
}
}
printf(" %s", obj->pkg_name);
}
}