forked from osmocom/wireshark
Fix CID 813: Code after ERROR is dead code (never reached)
svn path=/trunk/; revision=36840
This commit is contained in:
parent
a39c3fab30
commit
56e71b85f3
|
@ -220,17 +220,14 @@ comment #[^\n]*\n
|
|||
<SEPARATOR>{newline} {
|
||||
linenum++;
|
||||
ERROR(("expecting field %s in previous line",uat->fields[colnum].name));
|
||||
BEGIN START_OF_LINE;
|
||||
}
|
||||
|
||||
<SEPARATOR>. {
|
||||
ERROR(("unexpected char '%s' while looking for field %s",yytext,uat->fields[colnum].name));
|
||||
BEGIN ERRORED;
|
||||
}
|
||||
|
||||
<END_OF_RECORD>{separator} {
|
||||
ERROR(("more fields than required"));
|
||||
BEGIN ERRORED;
|
||||
}
|
||||
|
||||
<END_OF_RECORD>{newline} {
|
||||
|
@ -262,7 +259,6 @@ comment #[^\n]*\n
|
|||
|
||||
<END_OF_RECORD>. {
|
||||
ERROR(("unexpected char while looking for end of line"));
|
||||
BEGIN ERRORED;
|
||||
}
|
||||
|
||||
<ERRORED>{newline} { linenum++; BEGIN START_OF_LINE; }
|
||||
|
|
Loading…
Reference in New Issue