From 5fa4faea8e4c88adabaa10fde2450d8f288f5733 Mon Sep 17 00:00:00 2001 From: Sheldon Hearn Date: Tue, 5 Feb 2002 09:17:24 +0000 Subject: [PATCH] Fix obscure bug in code loading support that could cause parsing of functions in multi-line files to fail, depending on the state of the stack. The fix is sanctioned by the vendor and will appear in bc-1.07. PR: bin/34601 Reported by: mi Obtained from: Phil Nelson --- contrib/bc/bc/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/bc/bc/load.c b/contrib/bc/bc/load.c index 40b8051e4e48..dd03435277fe 100644 --- a/contrib/bc/bc/load.c +++ b/contrib/bc/bc/load.c @@ -156,7 +156,7 @@ load_code (code) long label_no; long vaf_name; /* variable, array or function number. */ long func; - program_counter save_adr; + static program_counter save_adr; /* Initialize. */ str = code;