Skip to content

Commit 1dc58b0

Browse files
committedNov 20, 2017
Corrected bug when reading scalar datasets
1 parent e36c630 commit 1dc58b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎h5_data.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ DM_ImageToken_1Ref h5_read_dataset_all(const char* filename, DM_StringToken loca
152152
return NULL;
153153
}
154154

155-
image = create_image(dtype, dims.size(), &dims[0]);
155+
image = create_image(dtype, dims.size(), dims.empty() ? NULL : &dims[0]);
156156
if (!image.IsValid()) {
157157
warning("h5_read_dataset: Can't create image.");
158158
return NULL;

0 commit comments

Comments
 (0)
Please sign in to comment.