mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-30 16:35:16 +08:00
Fix crash bug in cyntax validator when using an illegal command name. Thanks to Martin Bähr for the report.
darcs-hash:20060907201559-ac50b-34fa01bbc40eafddcc64a5111bebd88aab75a8d4.gz
This commit is contained in:
parent
227a5da02c
commit
72d73b7fdd
4
parser.c
4
parser.c
@ -3294,6 +3294,9 @@ int parser_test( const wchar_t * buff,
|
|||||||
arg_count = -1;
|
arg_count = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( cmd )
|
||||||
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Try to make sure the second argument to 'for' is 'in'
|
Try to make sure the second argument to 'for' is 'in'
|
||||||
*/
|
*/
|
||||||
@ -3317,6 +3320,7 @@ int parser_test( const wchar_t * buff,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Try to make sure that arguments passed to 'end' is always the type of block to close
|
Try to make sure that arguments passed to 'end' is always the type of block to close
|
||||||
|
Loading…
x
Reference in New Issue
Block a user