Merge pull request #7201 from braddunbar/stringmatchlen

Remove unreachable branch.
This commit is contained in:
Salvatore Sanfilippo 2020-05-06 16:17:10 +02:00 committed by GitHub
commit 2e2f57e23b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,8 +67,6 @@ int stringmatchlen(const char *pattern, int patternLen,
return 0; /* no match */ return 0; /* no match */
break; break;
case '?': case '?':
if (stringLen == 0)
return 0; /* no match */
string++; string++;
stringLen--; stringLen--;
break; break;