diff options
author | Thomas White <taw@physics.org> | 2016-04-13 10:27:08 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-04-13 10:27:08 +0200 |
commit | 19c917755e3c421c157b749a57d4ee2af2c1b6e2 (patch) | |
tree | e0f1cbb7707dcd41762157603d4c85019b8d37c3 | |
parent | 57381ed7e7e787ff0fd35e0eec2c7ed4cdae0357 (diff) |
Formatting
-rw-r--r-- | libcrystfel/src/events.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index 8d059528..25771a69 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -135,10 +135,9 @@ int append_event_to_event_list(struct event_list *ev_list, struct event *ev) struct event **new_el; new_el = realloc(ev_list->events, - (1+ev_list->num_events)*sizeof(struct event*)); - if ( new_el == NULL ) { - return 1; - } + (1+ev_list->num_events)*sizeof(struct event*)); + if ( new_el == NULL ) return 1; + ev_list->events = new_el; ev_list->events[ev_list->num_events] = copy_event(ev); ev_list->num_events +=1; |