summaryrefslogtreecommitdiff
path: root/src/analysis/type.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-10-13 22:17:14 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-10-13 22:21:21 (GMT)
commit601b8149bf81231a09e2977dbdbfe8e8e568c1f4 (patch)
tree9cf7c0e3b6398b4ad24880b3dcd26ef9b013a7fe /src/analysis/type.c
parent362ff8ddd7fac8a10c7cccae303d2ce5ea6dd7f2 (diff)
Defined proper Python bindings for class/enum types.
Diffstat (limited to 'src/analysis/type.c')
-rw-r--r--src/analysis/type.c3
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);