Skip to content
Snippets Groups Projects
Commit 481539e9 authored by Michael Kaufmann's avatar Michael Kaufmann
Browse files

test1554: improve the error handling

parent 593dcc55
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,12 @@ int test(char *URL)
global_init(CURL_GLOBAL_ALL);
share = curl_share_init();
if(!share) {
fprintf(stderr, "curl_share_init() failed\n");
curl_global_cleanup();
return TEST_ERR_MAJOR_BAD;
}
curl_share_setopt(share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
curl_share_setopt(share, CURLSHOPT_LOCKFUNC, my_lock);
curl_share_setopt(share, CURLSHOPT_UNLOCKFUNC, my_unlock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment