aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-12-24 20:38:00 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-12-24 20:38:00 +0200
commit399ec4931adce151b7633f2b66b04d021d3ae78c (patch)
tree9c1d988e9e76d85f647e741f16ab656cd794ae5e /profile.c
parent45bba30a98164938c25b6ed3a574e5f8a175bbd7 (diff)
downloadegawk-399ec4931adce151b7633f2b66b04d021d3ae78c.tar.gz
egawk-399ec4931adce151b7633f2b66b04d021d3ae78c.tar.bz2
egawk-399ec4931adce151b7633f2b66b04d021d3ae78c.zip
Minor bug fix in pretty printing code.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index ad879a3c..233bca0f 100644
--- a/profile.c
+++ b/profile.c
@@ -246,6 +246,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, bool in_for_header)
} else {
fprintf(prof_fp, "{\n");
ip1 = (pc + 1)->firsti;
+ ip2 = (pc + 1)->lasti;
}
ip1 = ip1->nexti;
}