diff options
Diffstat (limited to 'src/im-sandbox.c')
-rw-r--r-- | src/im-sandbox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 36150a1b..f796b8b7 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -222,6 +222,10 @@ static struct filename_plus_event *get_pattern(FILE *fh, int config_basename, } ev_list = fill_event_list(hdfile, det); + if ( ev_list == NULL ) { + ERROR("Failed to get event list.\n"); + return NULL; + } if ( ev_list->num_events == 0 ) { event_index = -1; |