aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-04 05:23:50 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-04 05:23:50 +0000
commit3d4dda4efbae711d089b35102fc87495ceb51639 (patch)
treea0fd6c29045837ff59bde7ebc476f8fa8e733507 /pbx.c
parent0f9c6b454034435785d42309f9dc5c24a20a5705 (diff)
Fix GotoIfTime if time is bad
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2321 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pbx.c b/pbx.c
index cf1082827..8db8db4f9 100755
--- a/pbx.c
+++ b/pbx.c
@@ -2933,12 +2933,12 @@ static void get_timerange(struct ast_include *i, char *times)
#if 1
s1 = s1 * 30 + s2/2;
if ((s1 < 0) || (s1 >= 24*30)) {
- ast_log(LOG_WARNING, "%s isn't a valid star time. Assuming no time.\n", times);
+ ast_log(LOG_WARNING, "%s isn't a valid start time. Assuming no time.\n", times);
return;
}
e1 = e1 * 30 + e2/2;
- if ((e1 < 0) || (e2 >= 24*30)) {
- ast_log(LOG_WARNING, "%s isn't a valid start time. Assuming no time.\n", times);
+ if ((e1 < 0) || (e1 >= 24*30)) {
+ ast_log(LOG_WARNING, "%s isn't a valid end time. Assuming no time.\n", e);
return;
}
/* Go through the time and enable each appropriate bit */