Coverity analysis defect 104949: Uninitialized scalar field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.2
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Storage NYC 2018-08-13
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A scalar field is not initialized by the constructor

      Defect 104949 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/storage/biggie/biggie_sorted_impl.cpp
      Function mongo::biggie::SortedDataInterface::SortedDataInterface(const mongo::Ordering &, bool, mongo::StringData)
      /src/mongo/db/storage/biggie/biggie_sorted_impl.h, line: 177
      Class member declaration for "_dupsAllowed".

              bool _dupsAllowed;
      

      /src/mongo/db/storage/biggie/biggie_sorted_impl.cpp, line: 310
      Non-static class member "_dupsAllowed" is not initialized in this constructor nor in any functions that it calls.

          }
      

            Assignee:
            Sean Tao (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: