diff options
-rw-r--r-- | libcrystfel/src/stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 76f1344b..23067c56 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -1442,6 +1442,8 @@ static char *make_key(const char *filename, { char *key; + if ( ev == NULL ) ev = "//"; + key = malloc(strlen(filename)+strlen(ev)+2); if ( key == NULL ) return NULL; |