From 6e9b0ce4903b1d0cfcad3815ff62b3e42947da72 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Tue, 18 Feb 2020 08:59:20 +0100 Subject: [PATCH] Add missing initialization for local variable. The autoargs variable is random for empty macro argument lists otherwise. --- src/Text3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index ac871d53d4..1e0180cc2e 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -2077,7 +2077,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) bool const sel = cur.selection(); doInsertInset(cur, this, cmd, true, true); // Insert auto-insert arguments - bool autoargs, inautoarg = false; + bool autoargs = false, inautoarg = false; Layout::LaTeXArgMap args = cur.inset().getLayout().args(); Layout::LaTeXArgMap::const_iterator lait = args.begin(); Layout::LaTeXArgMap::const_iterator const laend = args.end(); -- 2.39.5