gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 88/125: test1554: improve the error handling


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 88/125: test1554: improve the error handling
Date: Sun, 21 Jan 2018 23:42:23 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 481539e9020138abec6416e5a75daddd862267d7
Author: Michael Kaufmann <address@hidden>
AuthorDate: Sat Dec 30 16:51:38 2017 +0100

    test1554: improve the error handling
---
 tests/libtest/lib1554.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/libtest/lib1554.c b/tests/libtest/lib1554.c
index 35dbf2c1e..8842ae2f7 100644
--- a/tests/libtest/lib1554.c
+++ b/tests/libtest/lib1554.c
@@ -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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]