From 40beb7092a8baacef9e7420d465228dfd5037427 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 19 Jan 2016 22:19:33 +0100 Subject: [PATCH] (content.c) Add fallthrough --- content.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content.c b/content.c index b2967d20ac..facb70ebad 100644 --- a/content.c +++ b/content.c @@ -760,7 +760,6 @@ static bool content_init_file(struct string_list *temporary_content) error: if (content) string_list_free(content); - content_ctl(CONTENT_CTL_TEMPORARY_FREE, NULL); return false; } @@ -772,7 +771,9 @@ bool content_ctl(enum content_ctl_state state, void *data) switch(state) { case CONTENT_CTL_INIT: - return content_init_file(temporary_content); + if (content_init_file(temporary_content)) + return true; + /* fall-through */ case CONTENT_CTL_TEMPORARY_FREE: if (!temporary_content) return false;