aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-hreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index 5ac45843..8928266e 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -519,8 +519,8 @@ static int _iterargs_(struct iterdata *id, enum MHD_ValueKind kind, const char *
return 1;
return id->iterator(id->closure, (struct afb_arg){
.name = key,
- .value = value,
- .size = 0,
+ .value = value ? : "",
+ .size = value ? strlen(value) : 0,
.path = NULL
});
}