changeset 2678:6f5ec2164216

Initialise tmp_offset (fixes segfault)
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 14 May 2012 17:37:14 -0400
parents 8825f99d6143
children c0a572a11ab9
files conversion/dcm2mnc/dicom_to_minc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/conversion/dcm2mnc/dicom_to_minc.c
+++ b/conversion/dcm2mnc/dicom_to_minc.c
@@ -2137,6 +2137,7 @@
     int  ix1, ix2;
 
     max_offset = elem_ptr->data_length - sizeof(prot_head);
+    tmp_offset = max_offset;
 
     // Scan through the element containing the protocol, to find the 
     // ASCII dump of the MrProt structure.