mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
curl_fnmatch: Use int not bool when function returns int
bool in curl internals is unsigned char and should not be used to receive return value from functions returning int - this fails when using IBM VisualAge and Tru64 compilers.
This commit is contained in:
parent
d17709da31
commit
606b933a4f
@ -344,7 +344,7 @@ static int loop(const unsigned char *pattern, const unsigned char *string)
|
||||
else if(*p == '[') {
|
||||
unsigned char *pp = p+1; /* cannot handle with pointer to register */
|
||||
if(setcharset(&pp, charset)) {
|
||||
bool found = FALSE;
|
||||
int found = FALSE;
|
||||
if(charset[(unsigned int)*s])
|
||||
found = TRUE;
|
||||
else if(charset[CURLFNM_ALNUM])
|
||||
|
Loading…
Reference in New Issue
Block a user