diff options
author | Nuno Lopes <nlopess@php.net> | 2006-09-01 23:13:20 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2006-09-01 23:13:20 +0000 |
commit | c8b2f761f6d2e313c3d1952955539d8329aa6400 (patch) | |
tree | 1796838b1cc87201853dbd6dd2c80a47a4d9364e /ext/date | |
parent | 8251f8b8d02d902f0d2308ea1a8a90af171b12be (diff) | |
download | php-git-c8b2f761f6d2e313c3d1952955539d8329aa6400.tar.gz |
fix possible crash
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/lib/parse_tz.c | 2 |
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 */ } |