summaryrefslogtreecommitdiff
path: root/tests/tio_str.c
diff options
context:
space:
mode:
authorPhilippe Theveny <philippe.theveny@laposte.net>2009-03-23 13:55:14 +0000
committerPhilippe Theveny <philippe.theveny@laposte.net>2009-03-23 13:55:14 +0000
commitf9d1465a642885fb49e60cc309768bee955c4cf4 (patch)
tree585fd7f42c1c1d301e76ef6a379036228706d99c /tests/tio_str.c
parent71241e6c5e6500a45237e4eae2f8e26df8618c80 (diff)
downloadmpc-git-f9d1465a642885fb49e60cc309768bee955c4cf4.tar.gz
tests/tio_str.c: remove unused variable.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/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);
}