aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/main.c b/main.c
index face845..42bc2f0 100644
--- a/main.c
+++ b/main.c
@@ -682,11 +682,12 @@ static int getnode(const struct http_payload *const p,
goto end;
}
- const struct page_quota pq =
- {
- .cur = cur,
- .max = max
- }, *const ppq = available ? &pq : NULL;
+ const struct page_quota *const ppq = available ?
+ &(const struct page_quota)
+ {
+ .cur = cur,
+ .max = max
+ } : NULL;
ret = page_resource(r, dir.str, root.str, d.str, ppq);