Coverity analysis defect 105008: Uninitialized scalar field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A scalar field is not initialized by the constructor

      Defect 105008 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/bsoncxx/types.hpp
      Function mongocxx::v_noabi::options::change_stream::change_stream()
      /src/bsoncxx/types.hpp, line: 561
      The compiler-generated constructor for this class does not initialize "_start_at_operation_time.increment".

              uint32_t increment;
      

      /src/bsoncxx/types.hpp, line: 562
      The compiler-generated constructor for this class does not initialize "_start_at_operation_time.timestamp".

              uint32_t timestamp;
      

              Assignee:
              Ezra Chung
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: