diff options
-rw-r--r-- | src/list_events.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/list_events.c b/src/list_events.c index 1ef82701..44087233 100644 --- a/src/list_events.c +++ b/src/list_events.c @@ -175,6 +175,11 @@ int main(int argc, char *argv[]) } evlist = fill_event_list(hdfile, det); + if ( evlist == NULL ) { + ERROR("Failed to read %s\n", filename); + hdfile_close(hdfile); + continue; + } for ( i=0; i<evlist->num_events; i++ ) { char *str = get_event_string(evlist->events[i]); |