From e270ea610f64d1a3bbed11085d8dc171a98f2427 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 28 Aug 2019 14:25:44 +0200 Subject: [PATCH] Initialize num_bib_key_ Spotted by Coverity. --- src/BiblioInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h index c348a23541..5709be47c5 100644 --- a/src/BiblioInfo.h +++ b/src/BiblioInfo.h @@ -49,10 +49,10 @@ public: /// typedef std::vector const BibTeXInfoList; /// - BibTeXInfo() : is_bibtex_(true), modifier_(0) {} + BibTeXInfo() : is_bibtex_(true), num_bib_key_(0), modifier_(0) {} /// argument sets isBibTeX_, so should be false only if it's coming /// from a bibliography environment - BibTeXInfo(bool ib) : is_bibtex_(ib), modifier_(0) {} + BibTeXInfo(bool ib) : is_bibtex_(ib), num_bib_key_(0), modifier_(0) {} /// constructor that sets the entryType BibTeXInfo(docstring const & key, docstring const & type); /// \return an author or editor list (short form by default), -- 2.39.5