summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2002-02-05 09:17:24 +0000
committersheldonh <sheldonh@FreeBSD.org>2002-02-05 09:17:24 +0000
commit4aac827e422d7d30dc4bfc81034ed9f8ccfdb547 (patch)
treed81dddf29c7015117831f70fbc07c72643040af2 /contrib
parent719baf164e794b772e8b1869bbf106ef68bfd40e (diff)
downloadFreeBSD-src-4aac827e422d7d30dc4bfc81034ed9f8ccfdb547.zip
FreeBSD-src-4aac827e422d7d30dc4bfc81034ed9f8ccfdb547.tar.gz
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 <phil@cs.wwu.edu>
Diffstat (limited to 'contrib')
-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 40b8051..dd03435 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;
OpenPOWER on IntegriCloud