From 871a9a1f4a505d932672a62e389067f0125fc0e0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Jun 2020 17:02:31 +0200 Subject: substitute_path: Special case for no placeholders --- libcrystfel/src/image-hdf5.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index 13d0c5ed..a203f6ac 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -207,6 +207,15 @@ static char *substitute_path(const char *ev, const char *pattern) return NULL; } + if ( n_pl_exp == 0 ) { + /* No placeholders in path */ + for ( i=0; i