summaryrefslogtreecommitdiff
path: root/src/arch/dalvik/operands/pool.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-09-14 18:45:44 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-09-14 18:45:44 (GMT)
commitf4703b2ada4807fc1bab9bb37f4ff5a0f45dc62b (patch)
treeceae358c8aa94192cf403ab75ee2f986da43415e /src/arch/dalvik/operands/pool.c
parentfb6454b7393a41837d854ab47899600b8b434765 (diff)
Skipped the rendering of empty pool strings.
Diffstat (limited to 'src/arch/dalvik/operands/pool.c')
-rw-r--r--src/arch/dalvik/operands/pool.c8
1 files changed, 7 insertions, 1 deletions
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
{