lib1517: checksrc compliance

This commit is contained in:
Daniel Stenberg 2016-04-24 12:27:22 +02:00
parent 33623d7196
commit 6de32d916f

View File

@ -61,12 +61,13 @@ int test(char *URL)
pooh.readptr = data;
pooh.sizeleft = strlen(data);
if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
if(curl_global_init(CURL_GLOBAL_ALL)) {
fprintf(stderr, "curl_global_init() failed\n");
return TEST_ERR_MAJOR_BAD;
}
if ((curl = curl_easy_init()) == NULL) {
curl = curl_easy_init();
if(!curl) {
fprintf(stderr, "curl_easy_init() failed\n");
curl_global_cleanup();
return TEST_ERR_MAJOR_BAD;