Coverity analysis defect 122382: Uninitialized scalar field

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • QO 2022-07-11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Uninitialized scalar field

      The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
      /src/mongo/db/cloner.cpp:226: UNINIT_CTOR 122382 Class member declaration for "numSeen".
      /src/mongo/db/cloner.cpp:95: UNINIT_CTOR 122382 Non-static class member "numSeen" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/cloner.cpp:230: UNINIT_CTOR 122382 Class member declaration for "saveLast".
      /src/mongo/db/cloner.cpp:95: UNINIT_CTOR 122382 Non-static class member "saveLast" is not initialized in this constructor nor in any functions that it calls.

              Assignee:
              Ben Shteinfeld
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: