about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--042name.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/042name.cc b/042name.cc
index fc341832..323e9c3e 100644
--- a/042name.cc
+++ b/042name.cc
@@ -55,6 +55,7 @@ void transform_names(const recipe_ordinal r) {
       if (is_integer(inst.ingredients.at(in).name)) continue;
       if (!already_transformed(inst.ingredients.at(in), names)) {
         raise << maybe(caller.name) << "use before set: '" << inst.ingredients.at(in).name << "'\n" << end();
+        return;
       }
       int v = lookup_name(inst.ingredients.at(in), r);
       if (v >= 0) {