mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:21:41 +03:00
parent
b2d906754c
commit
4088b25b33
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ int test(char *URL)
|
|||
__FILE__, __LINE__, res, curl_easy_strerror(res));
|
||||
goto test_cleanup;
|
||||
}
|
||||
if(memcmp(scheme, "HTTP", 5) != 0) {
|
||||
if(scheme == NULL || memcmp(scheme, "HTTP", 5) != 0) {
|
||||
fprintf(stderr, "%s:%d scheme of http resource is incorrect; "
|
||||
"expected 'HTTP' but is %s\n",
|
||||
__FILE__, __LINE__,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue