aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-04 14:36:25 +0200
committerThomas White <taw@physics.org>2020-09-04 14:36:25 +0200
commit85ab8f227a0c07ea72d259a29d169fb0956c873a (patch)
tree121f54e74d4d2a22cbe2b2a197eca5650db4d682
parent341dc9f819ae35bd261c57f27907ca7780469226 (diff)
make_key: Handle NULL event
-rw-r--r--libcrystfel/src/stream.c2
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;