summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-07-31 23:34:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-07-31 23:34:56 (GMT)
commitd02deb2425d6559c357bdd00e1c0fb05f35d5fc9 (patch)
tree1a78849aa7d51706856a6c6127f66b48c188d0fc /src/format
parentfd2abec30a224279c62a7ab4892d95e56cb08dff (diff)
Processed disassembling in a dedicated thread.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@104 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r--src/format/exe_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/format/exe_format.c b/src/format/exe_format.c
index cda17f7..92db2fd 100644
--- a/src/format/exe_format.c
+++ b/src/format/exe_format.c
@@ -157,9 +157,9 @@ void set_bin_part_values(bin_part *part, off_t offset, off_t size, uint64_t voff
void get_bin_part_values(const bin_part *part, off_t *offset, off_t *size, uint64_t *voffset)
{
- *offset = part->offset;
- *size = part->size;
- *voffset = part->voffset;
+ if (offset != NULL) *offset = part->offset;
+ if (size != NULL) *size = part->size;
+ if (voffset != NULL) *voffset = part->voffset;
}