diff options
author | Thomas White <taw@physics.org> | 2014-09-24 13:39:28 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-09-24 13:39:28 +0200 |
commit | 10f77e1e2f11baae436bb149066625d295ae521a (patch) | |
tree | d5c7e382dce73695ced86d0af895877bf13b2086 /libcrystfel/src/events.c | |
parent | f88f11adb68b7b11dbc653543c989108aeb96a8f (diff) |
Move photon_energy to "geometry" file
Diffstat (limited to 'libcrystfel/src/events.c')
-rw-r--r-- | libcrystfel/src/events.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 633c9677..c9cc1ece 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -253,7 +253,9 @@ char *get_event_string(struct event *ev) char *new_ret_string; int ret_string_len; - if ( ev->path_length != 0) { + if ( ev == NULL ) return "null event"; + + if ( ev->path_length != 0 ) { int pi; |