summaryrefslogtreecommitdiff
path: root/src/format/java/pool.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-11-11 23:05:36 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-11-11 23:05:36 (GMT)
commit355a7140932b77d351bc6ddd965608b0011af855 (patch)
treef297872a2a33e0617d5fad0c85d00871f1482b06 /src/format/java/pool.c
parent0727204e36e919f06e80181482981c3f19669d76 (diff)
Fixed most of the warnings about use of uninitialized data.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@607 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/java/pool.c')
-rwxr-xr-xsrc/format/java/pool.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/format/java/pool.c b/src/format/java/pool.c
index f23cd41..7382f5f 100755
--- a/src/format/java/pool.c
+++ b/src/format/java/pool.c
@@ -63,7 +63,7 @@ bool load_java_pool(GJavaFormat *format, off_t *pos)
result = false/*read_u16(&count, G_BIN_FORMAT(format)->content, pos,
G_BIN_FORMAT(format)->length, SRE_BIG)*/;
-
+#if 0
printf("Alloc %hu entries (result=%d)\n", count, result);
format->header.pool_len = count - 1;
@@ -85,7 +85,7 @@ bool load_java_pool(GJavaFormat *format, off_t *pos)
}
}
-
+#endif
return result;
}
@@ -163,9 +163,9 @@ bool load_java_pool_entry(GJavaFormat *format, constant_pool_entry *entry, off_t
result = false/*read_u8(&tag, G_BIN_FORMAT(format)->content, pos,
G_BIN_FORMAT(format)->length, SRE_BIG)*/;
-
- entry->tag = tag;
#if 0
+ entry->tag = tag;
+
switch (entry->tag)
{
case CONSTANT_CLASS: