From 83e4718ec609a52c856844ead8022da92af709a0 Mon Sep 17 00:00:00 2001 From: Takanori Nakane Date: Tue, 3 Feb 2015 11:12:27 +0900 Subject: get_event_string should strdup "(none)" for consistency. --- libcrystfel/src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel') 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 ) { -- cgit v1.2.3