From f4703b2ada4807fc1bab9bb37f4ff5a0f45dc62b Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Wed, 14 Sep 2016 20:45:44 +0200 Subject: Skipped the rendering of empty pool strings. --- ChangeLog | 5 +++++ src/arch/dalvik/operands/pool.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index faac6fa..2a2c02b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +16-09-14 Cyrille Bagard + + * src/arch/dalvik/operands/pool.c: + Skip the rendering of empty pool strings. + 16-09-13 Cyrille Bagard * src/arch/dalvik/operand.c: diff --git a/src/arch/dalvik/operands/pool.c b/src/arch/dalvik/operands/pool.c index 7de8c37..5f98a04 100644 --- a/src/arch/dalvik/operands/pool.c +++ b/src/arch/dalvik/operands/pool.c @@ -253,8 +253,14 @@ static void g_dalvik_pool_operand_print(const GDalvikPoolOperand *operand, GBuff if (string != NULL) { g_buffer_line_insert_text(line, BLC_ASSEMBLY, "\"", 1, RTT_STRING); - g_buffer_line_insert_text(line, BLC_ASSEMBLY, string, strlen(string), RTT_STRING); + + len = strlen(string); + + if (len > 0) + g_buffer_line_insert_text(line, BLC_ASSEMBLY, string, len, RTT_STRING); + g_buffer_line_insert_text(line, BLC_ASSEMBLY, "\"", 1, RTT_STRING); + } else { -- cgit v0.11.2-87-g4458