diff options
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/image.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index a5973e4f..d48e4f3b 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -748,7 +748,11 @@ struct image *image_read(const DataTemplate *dtempl, } image->filename = strdup(filename); - image->ev = strdup(event); + if ( event != NULL ) { + image->ev = strdup(event); + } else { + image->ev = strdup("//"); /* Null event */ + } /* Load the image data */ if ( !no_image_data ) { |