summaryrefslogtreecommitdiff
path: root/plugins/readdex
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-09-28 21:48:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-09-28 21:48:37 (GMT)
commit3ea1d4c6cf82a75409b667b8fe20fc0718e5d922 (patch)
tree880977b870697b95dfc69944fb7cd30a7678120c /plugins/readdex
parent7b99c255f7b5a6cd82196d8ae396b5cf991f9784 (diff)
Annotated only existing dex class data.
Diffstat (limited to 'plugins/readdex')
-rw-r--r--plugins/readdex/class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/readdex/class.c b/plugins/readdex/class.c
index 64be347..b011ad8 100644
--- a/plugins/readdex/class.c
+++ b/plugins/readdex/class.c
@@ -210,7 +210,8 @@ bool annotate_dex_class_defs(const GDexFormat *format, GtkStatusStack *status)
def = g_dex_class_get_definition(class);
- result = annotate_dex_class_data(format, class, def->class_data_off);
+ if (def->class_data_off > 0)
+ result = annotate_dex_class_data(format, class, def->class_data_off);
/* TODO : g_object_unref(G_OBJECT(class));*/