Skip to content

Commit

Permalink
core: cfg.y typo in parsing XAVPVIAFIELDS
Browse files Browse the repository at this point in the history
In the XAVPVIAFIELDS block there is the string written to the wrong variable.

The string is stored in _ksr_xavp_via_params.s but the lenght is stored in _ksr_xavp_via_fields.len. This breaks XAVPVIAPARAMS and XAVPVIAFIELDS.
  • Loading branch information
Rick Barenthin authored and miconda committed Aug 15, 2023
1 parent e859169 commit 722a79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/cfg.y
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ assign_stm:
_ksr_xavp_via_params.len=strlen($3);
}
| XAVPVIAPARAMS EQUAL error { yyerror("string value expected"); }
| XAVPVIAFIELDS EQUAL STRING { _ksr_xavp_via_params.s=$3;
| XAVPVIAFIELDS EQUAL STRING { _ksr_xavp_via_fields.s=$3;
_ksr_xavp_via_fields.len=strlen($3);
}
| XAVPVIAFIELDS EQUAL error { yyerror("string value expected"); }
Expand Down

0 comments on commit 722a79a

Please sign in to comment.