Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
improves file handling
[src/app-framework-binder.git]
/
plugins
/
afm-main-plugin
/
afm-main-plugin.c
diff --git
a/plugins/afm-main-plugin/afm-main-plugin.c
b/plugins/afm-main-plugin/afm-main-plugin.c
index
d86e926
..
a23b197
100644
(file)
--- a/
plugins/afm-main-plugin/afm-main-plugin.c
+++ b/
plugins/afm-main-plugin/afm-main-plugin.c
@@
-221,8
+221,8
@@
static void install(struct afb_req request)
/* get the argument */
arg = afb_req_get(request, "widget");
/* get the argument */
arg = afb_req_get(request, "widget");
- filename = arg.
value
;
- if (filename == NULL
|| !arg.is_file
) {
+ filename = arg.
path
;
+ if (filename == NULL) {
afb_req_fail(request, "bad-request", "missing 'widget' file");
return;
}
afb_req_fail(request, "bad-request", "missing 'widget' file");
return;
}