summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/aplwc_errstr.c4
-rw-r--r--tests/aplwc_new.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/aplwc_errstr.c b/tests/aplwc_errstr.c
index 0a3b2ad..0efb777 100644
--- a/tests/aplwc_errstr.c
+++ b/tests/aplwc_errstr.c
@@ -26,9 +26,7 @@ main(void)
if(strcmp(err, "(unable to produce error string)") != 0)
return 1;
- ret = aplwc_destroy(aplwc);
- if(ret)
- return 1;
+ aplwc_destroy(aplwc);
ret = aplwc_new(&aplwc, data, 0);
if(ret == 0)
diff --git a/tests/aplwc_new.c b/tests/aplwc_new.c
index 1931c3c..55e742f 100644
--- a/tests/aplwc_new.c
+++ b/tests/aplwc_new.c
@@ -19,9 +19,7 @@ main(void)
if(j >= APLWC_MIN_MEM)
return 1;
}
- ret = aplwc_destroy(aplwc);
- if(ret)
- return 1;
+ aplwc_destroy(aplwc);
}
}