summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
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;
}