diff options
author | 2016-11-23 09:53:16 +0000 | |
---|---|---|
committer | 2016-11-23 09:53:16 +0000 | |
commit | ff32ed3286e9579ae48bd2c8c0400185a68bed81 (patch) | |
tree | 7956c3f4d91a98ac83876fb8bde81c96bd9052e3 | |
parent | Disable debugging output (diff) | |
download | wireguard-openbsd-ff32ed3286e9579ae48bd2c8c0400185a68bed81.tar.xz wireguard-openbsd-ff32ed3286e9579ae48bd2c8c0400185a68bed81.zip |
Empty strings are invalid arguments.
Fix a regression introduced when merging the two options parsers.
ok stsp@
-rw-r--r-- | lib/libfuse/fuse_opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfuse/fuse_opt.c b/lib/libfuse/fuse_opt.c index bbb2ad38142..766eae7d0f9 100644 --- a/lib/libfuse/fuse_opt.c +++ b/lib/libfuse/fuse_opt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_opt.c,v 1.16 2016/05/24 20:55:32 okan Exp $ */ +/* $OpenBSD: fuse_opt.c,v 1.17 2016/11/23 09:53:16 mpi Exp $ */ /* * Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com> * Copyright (c) 2013 Stefan Sperling <stsp@openbsd.org> @@ -344,7 +344,7 @@ fuse_opt_insert_arg(struct fuse_args *args, int p, const char *name) char *this_arg, *next_arg; int i; - if (name == NULL) + if (name == NULL || *name == '\0') return (-1); if (!args->allocated && alloc_argv(args)) |