summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-05-06 16:17:10 +0200
committerGitHub <noreply@github.com>2020-05-06 16:17:10 +0200
commit2e2f57e23b69e87e7ac066d4de03b3a84ec6366f (patch)
tree46998b6acfdad9bf8c566b03a11644af51e66c32
parent028eb457239ded422557ba4870347a2abec2bc71 (diff)
parent5508c228e76d0e832321148f0251478cb6d5308e (diff)
downloadredis-2e2f57e23b69e87e7ac066d4de03b3a84ec6366f.tar.gz
Merge pull request #7201 from braddunbar/stringmatchlen
Remove unreachable branch.
-rw-r--r--src/util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index d173f776f..537c9313c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -67,8 +67,6 @@ int stringmatchlen(const char *pattern, int patternLen,
return 0; /* no match */
break;
case '?':
- if (stringLen == 0)
- return 0; /* no match */
string++;
stringLen--;
break;