From: tedu Date: Mon, 19 Oct 2015 17:24:07 +0000 (+0000) Subject: missing deref on char check. from David Binderman X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5c40412d6a793968f1a94f8e6bc50857972a2112;p=openbsd missing deref on char check. from David Binderman --- diff --git a/lib/libfuse/fuse_opt.c b/lib/libfuse/fuse_opt.c index 300900b92c4..da7de596fea 100644 --- a/lib/libfuse/fuse_opt.c +++ b/lib/libfuse/fuse_opt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_opt.c,v 1.14 2015/08/24 15:31:36 mpi Exp $ */ +/* $OpenBSD: fuse_opt.c,v 1.15 2015/10/19 17:24:07 tedu Exp $ */ /* * Copyright (c) 2013 Sylvestre Gallon * Copyright (c) 2013 Stefan Sperling @@ -77,7 +77,7 @@ match_opt(const char *templ, const char *opt) t++; if (*t == '-') t++; - if (*t == 'o' || t == '\0') + if (*t == 'o' || *t == '\0') return (0); }