Mercurial > blahgd > fmt4
changeset 1094:179c14532888
req: use a local variable to improve code readability
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 07 Sep 2017 16:54:52 +0300 |
parents | 33d667424e3d |
children | 2477f43a937e |
files | req.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/req.c Thu Sep 07 16:54:21 2017 +0300 +++ b/req.c Thu Sep 07 16:54:52 2017 +0300 @@ -237,6 +237,7 @@ static bool select_page(struct req *req) { + struct nvlist *query = req->scgi->request.query; struct qs *args = &req->args; const struct nvpair *cur; struct str *uri; @@ -268,7 +269,7 @@ return false; } - nvl_for_each(cur, req->scgi->request.query) { + nvl_for_each(cur, query) { const char *name, *val; const char **cptr; int *iptr;