[LyX/master] Add missing initialization for local variable.
Stephan Witt
switt at lyx.org
Tue Feb 18 07:40:43 UTC 2020
commit f904fb2d61796b12668e5942a8939be794fc0d59
Author: Stephan Witt <switt at lyx.org>
Date: Tue Feb 18 08:59:20 2020 +0100
Add missing initialization for local variable.
The autoargs variable is random for empty macro argument lists otherwise.
---
src/Text3.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Text3.cpp b/src/Text3.cpp
index ac871d5..1e0180c 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();
More information about the lyx-cvs
mailing list