mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Check that there are a sufficient number of arguments for fish_pager
darcs-hash:20051012070351-ac50b-b1f72df88819e58542b00ba35cc5d75e125b9655.gz
This commit is contained in:
parent
93293b3557
commit
a3b8b0ab4b
1 changed files with 46 additions and 42 deletions
10
fish_pager.c
10
fish_pager.c
|
@ -946,8 +946,12 @@ int main( int argc, char **argv )
|
|||
|
||||
|
||||
init();
|
||||
|
||||
|
||||
if( argc < 3 )
|
||||
{
|
||||
debug( 0, L"Insufficient arguments" );
|
||||
}
|
||||
else
|
||||
{
|
||||
prefix = str2wcs( argv[2] );
|
||||
is_quoted = strcmp( "1", argv[1] )==0;
|
||||
|
||||
|
@ -985,7 +989,7 @@ int main( int argc, char **argv )
|
|||
fwprintf( out_file, L"%ls", (wchar_t *)out_buff.buff );
|
||||
if( is_ca_mode )
|
||||
writembs(exit_ca_mode);
|
||||
|
||||
}
|
||||
|
||||
destroy();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue