mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
parent
e48b68e870
commit
d000c0c3b3
9
r5dev/thirdparty/curl/curl_fnmatch.c
vendored
9
r5dev/thirdparty/curl/curl_fnmatch.c
vendored
@ -133,6 +133,9 @@ static int setcharset(unsigned char **p, unsigned char *charset)
|
||||
unsigned char c;
|
||||
for(;;) {
|
||||
c = **p;
|
||||
if(!c)
|
||||
return SETCHARSET_FAIL;
|
||||
|
||||
switch(state) {
|
||||
case CURLFNM_SCHS_DEFAULT:
|
||||
if(ISALNUM(c)) { /* ASCII value */
|
||||
@ -196,9 +199,6 @@ static int setcharset(unsigned char **p, unsigned char *charset)
|
||||
else
|
||||
return SETCHARSET_FAIL;
|
||||
}
|
||||
else if(c == '\0') {
|
||||
return SETCHARSET_FAIL;
|
||||
}
|
||||
else {
|
||||
charset[c] = 1;
|
||||
(*p)++;
|
||||
@ -277,9 +277,6 @@ static int setcharset(unsigned char **p, unsigned char *charset)
|
||||
else if(c == ']') {
|
||||
return SETCHARSET_OK;
|
||||
}
|
||||
else if(c == '\0') {
|
||||
return SETCHARSET_FAIL;
|
||||
}
|
||||
else if(ISPRINT(c)) {
|
||||
charset[c] = 1;
|
||||
(*p)++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user