diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-05-08 11:56:17 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-05-08 11:56:17 +0000 |
commit | 5f6b73328ec6d818c9101dea68aac0054d398d11 (patch) | |
tree | 54035d0d280c70e1d47b487fa3a6cf432794ea9f | |
parent | fadce0b525bbdfd57cde4196560a96e90a4ecbea (diff) |
correctly handle the `no input file' case.
-rw-r--r-- | usr.bin/rcs/rcsmerge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsmerge.c b/usr.bin/rcs/rcsmerge.c index c99024cb4c9..fd114ed5029 100644 --- a/usr.bin/rcs/rcsmerge.c +++ b/usr.bin/rcs/rcsmerge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsmerge.c,v 1.39 2006/05/08 09:59:09 xsa Exp $ */ +/* $OpenBSD: rcsmerge.c,v 1.40 2006/05/08 11:56:16 xsa Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -92,7 +92,7 @@ rcsmerge_main(int argc, char **argv) argc -= rcs_optind; argv += rcs_optind; - if (argc < 0) { + if (argc < 1) { warnx("no input file"); (usage)(); exit(D_ERROR); |