MFB: fix possible crash

This commit is contained in:
Nuno Lopes 2006-09-01 23:19:56 +00:00
parent b765958e7a
commit 2e3faf9cd2

View file

@ -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 */
}