From 4ae3a8b2b0bbb014805224d88a5ed86868103777 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Tue, 8 Dec 2020 07:13:11 +0100 Subject: [PATCH] Revert useless "fast exit" check from b2c00aa637af. --- src/util.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 15147234..80529a4c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -241,9 +241,6 @@ int __acc_cdecl_qsort le64_compare_signed(const void *e1, const void *e2) { int find(const void *b, int blen, const void *what, int wlen) { if (b == nullptr || blen <= 0 || what == nullptr || wlen <= 0) return -1; - // Fast exit if the wanted string is longer than the buffer. - if (wlen > blen) - return -1; int i; const unsigned char *base = (const unsigned char *) b;