aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--src/command/CommandListBuilder.cxx1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 499b3ac0c..dcb3c6da1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.18.15 (not yet released)
+* command
+ - list: reset used size after the list has been processed
* work around build failure on NetBSD
ver 0.18.14 (2014/09/11)
diff --git a/src/command/CommandListBuilder.cxx b/src/command/CommandListBuilder.cxx
index cc10f7205..4e0a8bd2a 100644
--- a/src/command/CommandListBuilder.cxx
+++ b/src/command/CommandListBuilder.cxx
@@ -27,6 +27,7 @@ void
CommandListBuilder::Reset()
{
list.clear();
+ size = 0;
mode = Mode::DISABLED;
}