Skip to content

Commit 3580c0b

Browse files
committed
oops, misplaced alloc
1 parent 68d2ea6 commit 3580c0b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/dicom-file.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,18 +1147,18 @@ bool dcm_filehandle_prepare_read_frame(DcmError **error,
11471147
DcmFilehandle *filehandle)
11481148
{
11491149
if (filehandle->offset_table == NULL) {
1150+
// move to the first of our stop tags
1151+
if (dcm_filehandle_get_metadata_subset(error, filehandle) == NULL) {
1152+
return false;
1153+
}
1154+
11501155
filehandle->offset_table = DCM_NEW_ARRAY(error,
11511156
filehandle->num_frames,
11521157
int64_t);
11531158
if (filehandle->offset_table == NULL) {
11541159
return false;
11551160
}
11561161

1157-
// move to the first of our stop tags
1158-
if (dcm_filehandle_get_metadata_subset(error, filehandle) == NULL) {
1159-
return false;
1160-
}
1161-
11621162
if (filehandle->layout == DCM_LAYOUT_UNKNOWN) {
11631163
dcm_error_set(error, DCM_ERROR_CODE_PARSE,
11641164
"Reading PixelData failed",

0 commit comments

Comments
 (0)