diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 20:28:02 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 20:28:02 +0000 |
commit | c37e80af824289f86398a383c1ef5e730c3a5cb5 (patch) | |
tree | 1ec64001c62ee7e19c30844b241a97c63c4d3051 /pbx.c | |
parent | 467ef402e039a63cc55e1925a6f83cf4448081ac (diff) |
Merge goto if patch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1150 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2778,6 +2778,12 @@ static void get_timerange(struct ast_include *i, char *times) int x; int s1, s2; int e1, e2; + + //[PHM 07/01/03] + //start disabling all times, fill the fields with 0's, as they may contain garbage + for(x=0;x<24;x++) + i->minmask[x]=0; + /* Star is all times */ if (!strlen(times) || !strcmp(times, "*")) { for (x=0;x<24;x++) @@ -4069,6 +4075,8 @@ static int pbx_builtin_gotoiftime(struct ast_channel *chan, void *data) /* Separate the Goto path */ strsep(&ts,"?"); + // [PHM 07/01/03] + // struct ast_include include contained garbage here, fixed by zeroing it on get_timerange build_timing(&include, s); if (include_valid(&include)) res = pbx_builtin_goto(chan, (void *)ts); |