aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib552.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib552.c')
-rw-r--r--tests/libtest/lib552.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c
index 5a0eb1c68..1c6e23455 100644
--- a/tests/libtest/lib552.c
+++ b/tests/libtest/lib552.c
@@ -146,10 +146,10 @@ static curlioerr ioctl_callback(CURL * handle, int cmd, void *clientp)
int test(char *URL)
{
CURL *curl;
- CURLcode res;
+ CURLcode res = CURLE_OUT_OF_MEMORY;
struct data config;
size_t i;
- char fill[] = "test data";
+ static const char fill[] = "test data";
config.trace_ascii = 1; /* enable ascii tracing */
@@ -190,5 +190,6 @@ int test(char *URL)
/* always cleanup */
curl_easy_cleanup(curl);
}
- return 0;
+ curl_global_cleanup();
+ return (int)res;
}