diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 20:44:56 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-02 20:44:56 +0000 |
commit | 4771c6238ddec0dbc1c568f4d0ea45ac2ff31760 (patch) | |
tree | a46368c12c0493ef472fac94268a98cd4dc77373 /pbx | |
parent | f6dbbaaa8ecb3a4462048edfd5e8475493bdb2d4 (diff) |
fix a bug previously introduced in the handling of timespec.
Fortunately we have regression tests!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24343 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/ael/ael.tab.c | 6 | ||||
-rw-r--r-- | pbx/ael/ael.y | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pbx/ael/ael.tab.c b/pbx/ael/ael.tab.c index cbcc8b453..52e444460 100644 --- a/pbx/ael/ael.tab.c +++ b/pbx/ael/ael.tab.c @@ -2158,9 +2158,9 @@ yyreduce: #line 304 "ael.y" { (yyval.pval) = nword((yyvsp[-6].str), &(yylsp[-6])); - (yyval.pval)->u1.list = nword((yyvsp[-4].str), &(yylsp[-4])); - (yyval.pval)->u1.list->next = nword((yyvsp[-2].str), &(yylsp[-2])); - (yyval.pval)->u1.list->next->next = nword((yyvsp[0].str), &(yylsp[0])); ;} + (yyval.pval)->next = nword((yyvsp[-4].str), &(yylsp[-4])); + (yyval.pval)->next->next = nword((yyvsp[-2].str), &(yylsp[-2])); + (yyval.pval)->next->next->next = nword((yyvsp[0].str), &(yylsp[0])); ;} break; case 52: diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y index 6c0a56f3f..5e1b41708 100644 --- a/pbx/ael/ael.y +++ b/pbx/ael/ael.y @@ -303,9 +303,9 @@ timerange: word3_list COLON word3_list COLON word3_list { /* full time specification range|dow|*|* */ timespec : timerange BAR word3_list BAR word3_list BAR word3_list { $$ = nword($1, &@1); - $$->u1.list = nword($3, &@3); - $$->u1.list->next = nword($5, &@5); - $$->u1.list->next->next = nword($7, &@7); } + $$->next = nword($3, &@3); + $$->next->next = nword($5, &@5); + $$->next->next->next = nword($7, &@7); } ; /* expression used in if, random, while, switch */ |