summaryrefslogtreecommitdiff
path: root/src/analysis/routine.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-05-07 14:24:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-05-07 14:24:16 (GMT)
commitc136e2c4c1ad02ea2e363fbe71ce54c6255793e2 (patch)
treeba19cc948ac23a3930d9943e94f8e37ec86991c1 /src/analysis/routine.c
parentb38035259b6e09c77d87950fe409fb72d09887d3 (diff)
Extended the Python bindings for the Dex format.
Diffstat (limited to 'src/analysis/routine.c')
-rw-r--r--src/analysis/routine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analysis/routine.c b/src/analysis/routine.c
index 336838b..6e56e2d 100644
--- a/src/analysis/routine.c
+++ b/src/analysis/routine.c
@@ -566,7 +566,7 @@ const char *g_binary_routine_get_declarator(GBinRoutine *routine, bool full)
if (routine->full_name != NULL)
new = _g_data_type_to_string(routine->full_name, false);
else
- new = routine->name;
+ new = strdup(routine->name != NULL ? routine->name : "");
if (routine->namespace != NULL)
{