diff --git a/src/scores.re.c b/src/scores.re.c index 534b3c0..54c0e38 100644 --- a/src/scores.re.c +++ b/src/scores.re.c @@ -199,7 +199,12 @@ int scores_is_empty(const struct scores *const s) int main(void) { struct journal j = journal(); + if(journal_is_empty(&j)) goto catch; struct scores s = scores(&j); + if(scores_is_empty(&s)) goto catch; + goto finally; +catch: scores_(&s); +finally: return EXIT_SUCCESS; }