cplusplus: add missing argc check in resize example (#3200)
This commit is contained in:
parent
25444cd927
commit
aef030e78a
@ -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" ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user