summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2011-10-08 10:32:19 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-10-08 10:32:19 (GMT)
commit404a540341683e29cbdbc6a958a762d9f8c5d6bd (patch) (side-by-side diff)
tree3ec3769b00d58b483e400393cde9fdf45a10c41d
parent7813cbc86985ad0656167bb583a9c7e75ba3ad94 (diff)
downloadcflow-404a540341683e29cbdbc6a958a762d9f8c5d6bd.tar.gz
cflow-404a540341683e29cbdbc6a958a762d9f8c5d6bd.tar.bz2
Bugfix
* src/parser.c (func_body): Reset caller when the topmost block is closed.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--THANKS2
-rw-r--r--src/parser.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/THANKS b/THANKS
index 35aa29e..f41a882 100644
--- a/THANKS
+++ b/THANKS
@@ -6,4 +6,4 @@ Louis Bertrand <louis@bertrandtech.ca>
Nelson H. F. Beebe <beebe@math.utah.edu>
Robert E. Michael <rmichael2@nc.rr.com>
Shigio YAMAGUCHI <shigio@tamacom.com>
-
+Terje Rosten <terje.rosten@ntnu.no>
diff --git a/src/parser.c b/src/parser.c
index 3163920..cdfea4e 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -892,9 +892,11 @@ func_body()
case 0:
if (verbose)
file_error(_("unexpected end of file in function body"), 0);
+ caller = NULL;
return;
}
}
+ caller = NULL;
}
int

Return to:

Send suggestions and report system problems to the System administrator.