diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2002-02-05 09:17:24 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2002-02-05 09:17:24 +0000 |
commit | 4aac827e422d7d30dc4bfc81034ed9f8ccfdb547 (patch) | |
tree | d81dddf29c7015117831f70fbc07c72643040af2 | |
parent | 719baf164e794b772e8b1869bbf106ef68bfd40e (diff) | |
download | FreeBSD-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>
-rw-r--r-- | contrib/bc/bc/load.c | 2 |
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; |