commit c346de1bd19c8aa719588c2e3f3a2bd69cbcc75e
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Aug 28 14:25:44 2019 +0200
Initialize num_bib_key_
Spotted by Coverity.
---
src/BiblioInfo.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h
index c348a23..5709be4 100644
--- a/src/BiblioInfo.h
+++ b/src/BiblioInfo.h
@@ -49,10 +49,10 @@ public:
///
typedef std::vector<BibTeXInfo const *> 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),