From 5f6b73328ec6d818c9101dea68aac0054d398d11 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Mon, 8 May 2006 11:56:17 +0000 Subject: correctly handle the `no input file' case. --- usr.bin/rcs/rcsmerge.c | 4 ++-- 1 file 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 * 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); -- cgit v1.2.3