]> git.lyx.org Git - features.git/commitdiff
Add missing initialization for local variable.
authorStephan Witt <switt@lyx.org>
Tue, 18 Feb 2020 07:59:20 +0000 (08:59 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:52 +0000 (15:48 +0200)
The autoargs variable is random for empty macro argument lists otherwise.

src/Text3.cpp

index ac871d53d473c898838529842365b55c57c009e9..1e0180cc2e726375487a1818373d1851e758dab1 100644 (file)
@@ -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();