Browse code

-optional $ in setavpflag,... identifier

Tomas Mandys authored on 31/05/2006 23:29:27
Showing 1 changed files
... ...
@@ -1437,7 +1437,9 @@ attr_id_any_str:
1437 1437
 			yyerror("Not enough memory");
1438 1438
 			YYABORT;
1439 1439
 		}
1440
-		s.s = $1+1; /* skip $ */
1440
+		s.s = $1;
1441
+		if (s.s[0] == '$')
1442
+			s.s++;
1441 1443
 		s.len = strlen(s.s);
1442 1444
 		if (parse_avp_name(&s, &type, &avp_spec->name, &idx)) {
1443 1445
 			yyerror("error when parsing AVP");