summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-09-01 23:13:20 +0000
committerNuno Lopes <nlopess@php.net>2006-09-01 23:13:20 +0000
commitc8b2f761f6d2e313c3d1952955539d8329aa6400 (patch)
tree1796838b1cc87201853dbd6dd2c80a47a4d9364e /ext/date
parent8251f8b8d02d902f0d2308ea1a8a90af171b12be (diff)
downloadphp-git-c8b2f761f6d2e313c3d1952955539d8329aa6400.tar.gz
fix possible crash
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/lib/parse_tz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/lib/parse_tz.c b/ext/date/lib/parse_tz.c
index 46ddb9786d..c5a8ed7099 100644
--- a/ext/date/lib/parse_tz.c
+++ b/ext/date/lib/parse_tz.c
@@ -196,7 +196,7 @@ static int tz_search(char *timezone, int left, int right, const timelib_tzdb *tz
{
int mid, cmp;
- if (left > right) {
+ if (left >= right) {
return -1; /* not found */
}