aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-04-28 17:11:37 +0200
committerDan Fandrich <dan@coneharvesters.com>2014-04-28 17:14:46 +0200
commit970ce28c12ddcf7ca0b3edd1446e34ea9cfb5cd1 (patch)
tree5cc8c8ad7f54f857bd751b5c07009e3157187409 /tests/unit
parentb8a220d255a27d654fd3c8f7844065ed2b206ca4 (diff)
unit1395: Fixed null pointer dereference on torture test
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/unit1395.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/unit/unit1395.c b/tests/unit/unit1395.c
index 8b0b0a08a..0fdf147d9 100644
--- a/tests/unit/unit1395.c
+++ b/tests/unit/unit1395.c
@@ -66,6 +66,7 @@ UNITTEST_START
for(i=0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
char *out = Curl_dedotdotify((char *)pairs[i].input);
+ abort_unless(out != NULL, "returned NULL!");
if(strcmp(out, pairs[i].output)) {
fprintf(stderr, "Test %d: '%s' gave '%s' instead of '%s'\n",
@@ -81,7 +82,3 @@ UNITTEST_START
return fails;
UNITTEST_STOP
-
-
-
-