Skip to content

Commit

Permalink
[cfg] fix bogus constraint on ':=' operator
Browse files Browse the repository at this point in the history
It is actually implemented by BAVP also (not only AVPs), but the script does not allow its usage :(.
Removing the check is safe as all the other variables will treat the ':=' as '=' - they do not test the operator during "set", assuming '=' all the time.

(cherry picked from commit 5bab986)
  • Loading branch information
bogdan-iancu committed Nov 28, 2023
1 parent 1a8606d commit 53d9ccb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cfg.y
Original file line number Diff line number Diff line change
Expand Up @@ -1997,13 +1997,6 @@ assign_cmd: script_var assignop assignexp {
| script_var COLONEQ NULLV {
if(!pv_is_w($1))
yyerror("invalid left operand in assignment");
/* not all can get NULL with := */
switch($1->type) {
case PVT_AVP:
break;
default:
yyerror("invalid left operand in NULL assignment");
}
if($1->trans!=0)
yyerror("transformations not accepted in left side "
"of assignment");
Expand Down

0 comments on commit 53d9ccb

Please sign in to comment.