about summary refs log tree commit diff
path: root/contexts.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--contexts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contexts.c b/contexts.c
index 39974bb..04b44ac 100644
--- a/contexts.c
+++ b/contexts.c
@@ -105,8 +105,8 @@ enum kcgi_err pageContexts(struct kreq *req) {
 			|| khtml_puts(&html, context)
 			|| khtml_closeelem(&html, 2);
 		free(href);
-		if (error) break;
+		if (error) return error;
 	}
 	if (result != SQLITE_DONE) errx(EX_SOFTWARE, "%s", sqlite3_errmsg(db));
-	return error || htmlFooter(&html) || khtml_close(&html);
+	return htmlFooter(&html) || khtml_close(&html);
 }