From 7e8983ef66959582c14052acd00bf91592908470 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 7 Apr 2023 03:54:38 -0700 Subject: [PATCH] More nuanced. --- src/scores.re.c | 5 +++++ 1 file changed, 5 insertions(+) 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; }