diff options
Diffstat (limited to 'plugins/afm-main-plugin')
-rw-r--r-- | plugins/afm-main-plugin/afm-main-plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/afm-main-plugin/afm-main-plugin.c b/plugins/afm-main-plugin/afm-main-plugin.c index d86e9263..a23b1971 100644 --- 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"); - 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; } |