summaryrefslogtreecommitdiff
path: root/linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'linear.c')
-rw-r--r--linear.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linear.c b/linear.c
index 656fe43..b69080c 100644
--- a/linear.c
+++ b/linear.c
@@ -78,7 +78,7 @@ DoLU(void)
LUdblptr ptra;
int n;
int i;
- int num_arrays;
+ static int num_arrays = 0;
static int is_adjusted = FALSE;
/*
@@ -112,7 +112,6 @@ DoLU(void)
if (is_adjusted == FALSE) {
is_adjusted = TRUE;
- num_arrays=0;
for(i=1;i<=MAXLUARRAYS;i++)
{
abase = realloc(abase, sizeof(double) * LUARRAYCOLS*LUARRAYROWS*(i+1));