1
0
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:
Daniel Stenberg 2013-09-06 14:12:44 +02:00
parent 900ccc26ae
commit 2a7f1425d9

View File

@ -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