Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit565dcdf

Browse files
committed
Fix off-by-one bug in usage check.
1 parentd117782 commit565dcdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/vacuumlo/vacuumlo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.17 2002/10/18 18:41:21 momjian Exp $
11+
* $Header: /cvsroot/pgsql/contrib/vacuumlo/vacuumlo.c,v 1.18 2002/12/03 07:12:18 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -471,7 +471,7 @@ main(int argc, char **argv)
471471
}
472472

473473
/* No database given? Show usage */
474-
if (optind >=argc-1)
474+
if (optind >=argc)
475475
{
476476
fprintf(stderr,"vacuumlo: missing required argument: database name\n");
477477
fprintf(stderr,"Try 'vacuumlo -?' for help.\n");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp