mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 08:11:03 +00:00
parent
11d399dded
commit
c710d4afdc
@ -48,7 +48,7 @@
|
|||||||
int stringmatchlen(const char *pattern, int patternLen,
|
int stringmatchlen(const char *pattern, int patternLen,
|
||||||
const char *string, int stringLen, int nocase)
|
const char *string, int stringLen, int nocase)
|
||||||
{
|
{
|
||||||
while(patternLen) {
|
while(patternLen && stringLen) {
|
||||||
switch(pattern[0]) {
|
switch(pattern[0]) {
|
||||||
case '*':
|
case '*':
|
||||||
while (pattern[1] == '*') {
|
while (pattern[1] == '*') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user