1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-21 16:02:15 +03:00

Fix off-by-one bug in usage check.

This commit is contained in:
Tom Lane
2002-12-03 07:12:23 +00:00
parent 4390ebc505
commit 5b827b68db

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.17 2002/10/18 18:41:21 momjian Exp $
* $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.17.2.1 2002/12/03 07:12:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -471,7 +471,7 @@ main(int argc, char **argv)
}
/* No database given? Show usage */
if (optind >= argc - 1)
if (optind >= argc)
{
fprintf(stderr, "vacuumlo: missing required argument: database name\n");
fprintf(stderr, "Try 'vacuumlo -?' for help.\n");