diff options
-rw-r--r-- | main.c | 7 | ||||
-rw-r--r-- | manpath.c | 3 |
2 files changed, 3 insertions, 7 deletions
@@ -300,12 +300,9 @@ main(int argc, char *argv[]) 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; } } } @@ -332,8 +332,7 @@ manconf_output(struct manoutput *conf, const char *cp, int fromfile) 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) |