mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -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
|
||||
step_n = 1;
|
||||
if(*endp == ']') {
|
||||
if(endp && (*endp == ']')) {
|
||||
pattern= endp+1;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user