aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/unit1605.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unit1605.c')
-rw-r--r--tests/unit/unit1605.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/unit1605.c b/tests/unit/unit1605.c
index c807cb3f2..2fe3a5aca 100644
--- a/tests/unit/unit1605.c
+++ b/tests/unit/unit1605.c
@@ -34,9 +34,10 @@ static void unit_stop(void)
}
UNITTEST_START
- CURL *easy = curl_easy_init();
int len;
char *esc;
+ CURL *easy = curl_easy_init();
+ abort_unless(easy, "out of memory");
esc = curl_easy_escape(easy, "", -1);
fail_unless(esc == NULL, "negative string length can't work");