mirror of
https://github.com/moparisthebest/curl
synced 2025-01-09 04:58:00 -05:00
urlglob: avoid NULL pointer dereference
Thanks to clang-analyzer
This commit is contained in:
parent
900ccc26ae
commit
2a7f1425d9
@ -287,7 +287,7 @@ static GlobCode glob_range(URLGlob *glob, char **patternp,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
step_n = 1;
|
step_n = 1;
|
||||||
if(*endp == ']') {
|
if(endp && (*endp == ']')) {
|
||||||
pattern= endp+1;
|
pattern= endp+1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user