diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 90edbecb50..e49dc0a3b9 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -521,7 +521,7 @@ Expr evalExpr2(EvalState & state, Expr e) /* Backwards compatability: subpath operator (~). */ if (matchSubPath(e, e1, e2)) { - static bool haveWarned; + static bool haveWarned = false; warnOnce(haveWarned, "the subpath operator (~) is deprecated, use string concatenation (+) instead"); ATermList context = ATempty; bool dummy;