diff options
author | 2013-11-04 19:54:18 +0000 | |
---|---|---|
committer | 2013-11-04 19:54:18 +0000 | |
commit | 2e594ad160d9843c8bb29703c3650837393e7653 (patch) | |
tree | be1f67429e40407926a102062cddc03df2096760 | |
parent | If compiled for hibernate, reserve the last page of the primary swap (diff) | |
download | wireguard-openbsd-2e594ad160d9843c8bb29703c3650837393e7653.tar.xz wireguard-openbsd-2e594ad160d9843c8bb29703c3650837393e7653.zip |
fuse_opt_insert_arg() can take empty string as argument.
unbreak ntfs-3g.
ok pirofti@
-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 5e2a45f6238..289288fe30d 100644 --- a/lib/libfuse/fuse_opt.c +++ b/lib/libfuse/fuse_opt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_opt.c,v 1.6 2013/11/02 09:00:49 syl Exp $ */ +/* $OpenBSD: fuse_opt.c,v 1.7 2013/11/04 19:54:18 syl Exp $ */ /* * Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com> * Copyright (c) 2013 Stefan Sperling <stsp@openbsd.org> @@ -314,7 +314,7 @@ fuse_opt_insert_arg(struct fuse_args *args, int p, const char *name) char *this_arg, *next_arg; int i; - if (name == NULL || name[0] == '\0') + if (name == NULL) return (-1); if (!args->allocated && alloc_argv(args)) |