mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-31 15:46:16 +00:00
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
This commit is contained in:
parent
77f6770bbf
commit
3fefbf7917
@ -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),
|
file_fully_loaded(false), file_format(LYX_FORMAT), need_format_backup(false),
|
||||||
ignore_parent(false), toc_backend(owner), macro_lock(false), timestamp_(0),
|
ignore_parent(false), toc_backend(owner), macro_lock(false), timestamp_(0),
|
||||||
checksum_(0), wa_(0), gui_(0), undo_(*owner), bibinfo_cache_valid_(false),
|
checksum_(0), wa_(0), gui_(0), undo_(*owner), bibinfo_cache_valid_(false),
|
||||||
bibfile_cache_valid_(false), cite_labels_valid_(false), inset(0),
|
bibfile_cache_valid_(false), cite_labels_valid_(false), preview_error_(false),
|
||||||
preview_loader_(0), cloned_buffer_(cloned_buffer), clone_list_(0),
|
inset(0), preview_loader_(0), cloned_buffer_(cloned_buffer), clone_list_(0),
|
||||||
doing_export(false), parent_buffer(0),
|
doing_export(false), parent_buffer(0),
|
||||||
word_count_(0), char_count_(0), blank_count_(0)
|
word_count_(0), char_count_(0), blank_count_(0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user