Fix array_test: move params to local vars
commit4ccb5662cbfbf3e8c58a1b642fd3446fcce55e16
authorThomas Preud'homme <thomas.preudhomme@celest.fr>
Tue, 12 Jul 2011 13:10:59 +0000 (12 15:10 +0200)
committerThomas Preud'homme <thomas.preudhomme@celest.fr>
Tue, 12 Jul 2011 13:10:59 +0000 (12 15:10 +0200)
tree6050173f7d5b738dce856b7225f2982382f75b34
parent45184e01d80d0e01bc6d03a86e5aa4e706095e47
Fix array_test: move params to local vars

array_test is declared and called with no parameters but defined with
one parameter. Compilation succeed (definition is after the use so the
compiler consider the declaration) as well as link (the function exist
and has the right name) but running the test segfault on i386 platforms.

This patch moves the parameter to local variable. If the intention was
to call it with an array parameter then feel free to fix it again.
tests/tcctest.c