about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-17 14:58:00 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-17 14:58:00 -0700
commit1fba5d5d40136f74ee23250d5ccd5737e90bfd11 (patch)
tree2f1618e3369576773e4e1d80cad9096a11db5f3a /cpp
parent4735eb831708f3dc078ba5e8ce1301575c6b6a30 (diff)
downloadmu-1fba5d5d40136f74ee23250d5ccd5737e90bfd11.tar.gz
1081
Diffstat (limited to 'cpp')
-rw-r--r--cpp/040brace2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/040brace b/cpp/040brace
index d01fe359..174335af 100644
--- a/cpp/040brace
+++ b/cpp/040brace
@@ -149,7 +149,7 @@ void transform_braces(const recipe_number r) {
 }
 
 size_t matching_brace(size_t index, const list<pair<int, size_t> >& braces) {
-  int stacksize;
+  int stacksize = 0;
   for (list<pair<int, size_t> >::const_iterator p = braces.begin(); p != braces.end(); ++p) {
     if (p->second < index) continue;
     stacksize += (p->first ? 1 : -1);