diff options
Diffstat (limited to 'src/analysis/type.c')
-rw-r--r-- | src/analysis/type.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analysis/type.c b/src/analysis/type.c index f19d846..9a8e85b 100644 --- a/src/analysis/type.c +++ b/src/analysis/type.c @@ -198,6 +198,9 @@ char *g_data_type_to_string(const GDataType *type, bool include) result = class->to_string(type, include); + if (result == NULL) + result = strdup(""); + if (include && type->namespace != NULL && g_data_type_handle_namespaces(type)) { namespace = g_data_type_to_string(type->namespace, true); |