cplusplus: add missing argc check in resize example (#3200)

This commit is contained in:
Kleis Auke Wolthuizen 2022-11-30 01:04:27 +01:00 committed by GitHub
parent 25444cd927
commit aef030e78a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ main( int argc, char **argv )
if( VIPS_INIT( argv[0] ) )
vips_error_exit( NULL );
if( argc != 3 )
vips_error_exit( "usage: %s infile outfile", argv[0] );
VImage in = VImage::new_from_file( argv[1], VImage::option()
->set( "access", "sequential" ) );