about summary refs log tree commit diff stats
path: root/029tools.cc
diff options
context:
space:
mode:
Diffstat (limited to '029tools.cc')
-rw-r--r--029tools.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/029tools.cc b/029tools.cc
index de4b488c..11130e5f 100644
--- a/029tools.cc
+++ b/029tools.cc
@@ -189,12 +189,12 @@ _SYSTEM,
 Recipe_ordinal["$system"] = _SYSTEM;
 :(before "End Primitive Recipe Implementations")
 case _SYSTEM: {
-  products.resize(1);
   if (current_instruction().ingredients.empty()) {
     raise << current_recipe_name() << ": '$system' requires exactly one ingredient, but got none\n" << end();
     break;
   }
   int status = system(current_instruction().ingredients.at(0).name.c_str());
+  products.resize(1);
   products.at(0).push_back(status);
   break;
 }