From c8b2f761f6d2e313c3d1952955539d8329aa6400 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 1 Sep 2006 23:13:20 +0000 Subject: [PATCH] fix possible crash --- ext/date/lib/parse_tz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ } -- 2.50.1