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 9e25f16f..cd4123fa 100644
--- a/029tools.cc
+++ b/029tools.cc
@@ -182,11 +182,11 @@ _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;
   }
-  products.resize(1);
   int status = system(current_instruction().ingredients.at(0).name.c_str());
   products.at(0).push_back(status);
   break;