commit 28f4cb6bb272a7eaca33018e4568035e7914a9ea
parent 78f083f11c640b6c52f9d379d6b858f871e09eba
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Mon, 11 Mar 2024 01:25:28 -0700
Use loadpagerequest() return value in main()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/timekeeper.c b/timekeeper.c
@@ -94,7 +94,7 @@ main(void)
err(1, "Unable to setup database");
status = KCGI_OK;
- while (loadpagerequest(fcgi, &pd) == KCGI_OK) {
+ while ((status = loadpagerequest(fcgi, &pd)) == KCGI_OK) {
/* Ignore return value */
showpage(&pd, pages, pagefunctions, Len(pages));
freepagerequest(&pd);