-/* $Id: main.c,v 1.326 2019/05/03 17:31:15 schwarze Exp $ */
+/* $Id: main.c,v 1.327 2019/05/03 18:39:34 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
search.outkey = oarg;
else {
while (oarg != NULL) {
- thisarg = oarg;
if (manconf_output(&conf.output,
- strsep(&oarg, ","), 0) == 0)
- continue;
- warnx("-O %s: Bad argument", thisarg);
- return (int)MANDOCLEVEL_BADARG;
+ strsep(&oarg, ","), 0) == -1)
+ return (int)MANDOCLEVEL_BADARG;
}
}
}
-/* $Id: manpath.c,v 1.38 2019/05/03 18:23:53 schwarze Exp $ */
+/* $Id: manpath.c,v 1.39 2019/05/03 18:39:34 schwarze Exp $ */
/*
* Copyright (c) 2011,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
conf->toc = 1;
return 0;
default:
- if (fromfile)
- warnx("-O %s: Bad argument", cp);
+ warnx("-O %s: Bad argument", cp);
return -1;
}
if (fromfile == 0)