From 3fefbf7917f66660f38d266f834b98945cff6903 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Fri, 30 Sep 2016 23:21:45 -0400 Subject: [PATCH] Initialize a member variable before it is used Valgrind spotted a conditional jump depending on an uninitialised value. Thanks to Pavel for the help. For more information, see: https://www.mail-archive.com/search?l=mid&q=20160928204810.e5ylny3raa7jgmgw%40Opti1604 --- src/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index a66988b48a..99641e278c 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -420,8 +420,8 @@ Buffer::Impl::Impl(Buffer * owner, FileName const & file, bool readonly_, file_fully_loaded(false), file_format(LYX_FORMAT), need_format_backup(false), ignore_parent(false), toc_backend(owner), macro_lock(false), timestamp_(0), checksum_(0), wa_(0), gui_(0), undo_(*owner), bibinfo_cache_valid_(false), - bibfile_cache_valid_(false), cite_labels_valid_(false), inset(0), - preview_loader_(0), cloned_buffer_(cloned_buffer), clone_list_(0), + bibfile_cache_valid_(false), cite_labels_valid_(false), preview_error_(false), + inset(0), preview_loader_(0), cloned_buffer_(cloned_buffer), clone_list_(0), doing_export(false), parent_buffer(0), word_count_(0), char_count_(0), blank_count_(0) {