Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36781

Coverity analysis defect 104978: Uninitialized scalar field

    • Fully Compatible
    • ALL
    • Query 2018-09-10

      A scalar field is not initialized by the constructor

      Defect 104978 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/pipeline/document_source_merge_cursors.cpp
      Function mongo::DocumentSourceMergeCursors::DocumentSourceMergeCursors(mongo::executor::TaskExecutor *, mongo::AsyncResultsMergerParams, const boost::intrusive_ptr<mongo::ExpressionContext> &, boost::optional<mongo::BSONObj>)
      /src/mongo/db/pipeline/document_source_merge_cursors.h, line: 164
      Class member declaration for "_execContext".

              RouterExecStage::ExecContext _execContext;
      

      /src/mongo/db/pipeline/document_source_merge_cursors.cpp, line: 53
      Non-static class member "_execContext" is not initialized in this constructor nor in any functions that it calls.

                _armParams(std::move(armParams)) {}
      

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: