summaryrefslogtreecommitdiff
path: root/tests/tio_str.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-03-23 13:55:14 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-03-23 13:55:14 +0000
commit9b77de617d32192cde723557445c76864a1e00b0 (patch)
tree585fd7f42c1c1d301e76ef6a379036228706d99c /tests/tio_str.c
parent77a7c74c01f1e3e2e11d4c40931f7c76f110ec27 (diff)
downloadmpc-9b77de617d32192cde723557445c76864a1e00b0.tar.gz
tests/tio_str.c: remove unused variable.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@499 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tio_str.c')
-rw-r--r--tests/tio_str.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c
index caa7338..bc87749 100644
--- a/tests/tio_str.c
+++ b/tests/tio_str.c
@@ -39,9 +39,6 @@ check_file (const char* file_name)
{
FILE *fp;
- size_t str_len = 255;
- char *str = NULL;
-
int tmp;
int base;
int inex_re;
@@ -54,12 +51,6 @@ check_file (const char* file_name)
fp = open_data_file (file_name);
- str = (char *) malloc (str_len * sizeof (char));
- if (str == NULL)
- {
- printf ("Cannot allocate memory\n");
- exit (1);
- }
mpc_init2 (expected, 53);
mpc_init2 (got, 53);
@@ -115,8 +106,6 @@ check_file (const char* file_name)
mpc_clear (expected);
mpc_clear (got);
- if (str != NULL)
- free (str);
close_data_file (fp);
}