From: Stephan Witt Date: Tue, 18 Feb 2020 07:59:20 +0000 (+0100) Subject: Add missing initialization for local variable. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6e9b0ce4903b1d0cfcad3815ff62b3e42947da72;p=features.git Add missing initialization for local variable. The autoargs variable is random for empty macro argument lists otherwise. --- 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();