summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSylvestre Gallon <syl@cvs.openbsd.org>2013-11-04 19:54:19 +0000
committerSylvestre Gallon <syl@cvs.openbsd.org>2013-11-04 19:54:19 +0000
commit4e7e7c663f2b298985720e22a3fc19c9b0c7ea54 (patch)
treea39b6058d1176f56850142485067035718622779 /lib
parent0956088e4e881151d43cec11f3c8b08e6e934de7 (diff)
fuse_opt_insert_arg() can take empty string as argument.
unbreak ntfs-3g. ok pirofti@
Diffstat (limited to 'lib')
-rw-r--r--lib/libfuse/fuse_opt.c4
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))