Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
94a5b50
)
fix parameters without value
author
José Bollo
<jose.bollo@iot.bzh>
Thu, 7 Apr 2016 11:43:27 +0000
(13:43 +0200)
committer
José Bollo
<jose.bollo@iot.bzh>
Thu, 7 Apr 2016 11:43:27 +0000
(13:43 +0200)
Change-Id: I104186ab681ebcc3198ad9e57894a0652a0901dc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-hreq.c
patch
|
blob
|
history
diff --git
a/src/afb-hreq.c
b/src/afb-hreq.c
index
5ac4584
..
8928266
100644
(file)
--- 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
});
}