Commit 2a7f1425 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

urlglob: avoid NULL pointer dereference

Thanks to clang-analyzer
parent 900ccc26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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