diff options
author | Takanori Nakane <nakane.t@gmail.com> | 2015-02-03 11:12:27 +0900 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-02-12 12:42:17 +0100 |
commit | 83e4718ec609a52c856844ead8022da92af709a0 (patch) | |
tree | ed159289c1fd597a1dcab5aabc18b029c50eed98 /libcrystfel | |
parent | 5f6b5ffcd560f056ae3af56a50d7662460652ba8 (diff) |
get_event_string should strdup "(none)" for consistency.
Diffstat (limited to 'libcrystfel')
-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 ) { |