aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-04-13 10:27:08 +0200
committerThomas White <taw@physics.org>2016-04-13 10:27:08 +0200
commit19c917755e3c421c157b749a57d4ee2af2c1b6e2 (patch)
treee0f1cbb7707dcd41762157603d4c85019b8d37c3 /libcrystfel
parent57381ed7e7e787ff0fd35e0eec2c7ed4cdae0357 (diff)
Formatting
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/events.c7
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;