aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse_opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fuse_opt.c')
-rw-r--r--lib/fuse_opt.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/fuse_opt.c b/lib/fuse_opt.c
index f49e85d..e3234f2 100644
--- a/lib/fuse_opt.c
+++ b/lib/fuse_opt.c
@@ -114,17 +114,11 @@ static int insert_arg(struct fuse_opt_context *ctx, int pos, const char *arg)
static int call_proc(struct fuse_opt_context *ctx, const char *arg, int key,
int iso)
{
- int res;
-
- if (!ctx->proc) {
- fprintf(stderr, "fuse: unknown option `%s'\n", arg);
- return -1;
+ if (ctx->proc) {
+ int res = ctx->proc(ctx->data, arg, key);
+ if (res == -1 || !res)
+ return res;
}
-
- res = ctx->proc(ctx->data, arg, key);
- if (res == -1 || !res)
- return res;
-
if (iso)
return add_opt(ctx, arg);
else