aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2002-02-05 09:17:24 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2002-02-05 09:17:24 +0000
commit5fa4faea8e4c88adabaa10fde2450d8f288f5733 (patch)
treed81dddf29c7015117831f70fbc07c72643040af2
parenta078a0525234a6ec5a88bee99789460134814de7 (diff)
downloadsrc-vendor/misc-GNU/bc.tar.gz
src-vendor/misc-GNU/bc.zip
Fix obscure bug in code loading support that could cause parsing ofvendor/misc-GNU/bc
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 <phil@cs.wwu.edu>
Notes
Notes: svn path=/vendor/bc/dist/; revision=90238
-rw-r--r--contrib/bc/bc/load.c2
1 files changed, 1 insertions, 1 deletions
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;