Bug 7196 - month range did not work

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2006-05-22 14:34:34 +00:00
parent 1795ff12cd
commit d5a7d2e170

2
pbx.c
View File

@@ -4064,7 +4064,7 @@ static unsigned int get_month(char *mon)
}
if (c) {
e = 0;
while((e < 12) && strcasecmp(mon, months[e])) e++;
while((e < 12) && strcasecmp(c, months[e])) e++;
if (e >= 12) {
ast_log(LOG_WARNING, "Invalid month '%s', assuming none\n", c);
return 0;