diff options
-rw-r--r-- | libcrystfel/src/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 5de60b66..731f39f8 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -292,7 +292,7 @@ char *get_event_string(struct event *ev) char *new_ret_string; int ret_string_len; - if ( ev == NULL ) return "(none)"; + if ( ev == NULL ) return strdup("(none)"); if ( ev->path_length != 0 ) { |