diff options
author | Thomas White <taw@physics.org> | 2020-09-04 14:36:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-04 14:36:25 +0200 |
commit | 85ab8f227a0c07ea72d259a29d169fb0956c873a (patch) | |
tree | 121f54e74d4d2a22cbe2b2a197eca5650db4d682 /libcrystfel/src/stream.c | |
parent | 341dc9f819ae35bd261c57f27907ca7780469226 (diff) |
make_key: Handle NULL event
Diffstat (limited to 'libcrystfel/src/stream.c')
-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; |