From 102e6340e522747a04c8b3f42834ff21ba6b225b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 9 Jun 2016 16:51:07 +0200 Subject: [PATCH] Initialize InsetExteralParams::preview_mode in constructor The value PREVIEW_OFF is the same default as for external::Template. Found by Coverity --- src/insets/InsetExternal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/insets/InsetExternal.cpp b/src/insets/InsetExternal.cpp index 097dc7d3e0..b04ea898d7 100644 --- a/src/insets/InsetExternal.cpp +++ b/src/insets/InsetExternal.cpp @@ -116,6 +116,7 @@ support::FileName TempName::operator()() const InsetExternalParams::InsetExternalParams() : display(true), + preview_mode(PREVIEW_OFF), lyxscale(defaultLyxScale), draft(false) {