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

Coverity analysis defect 122382: Uninitialized scalar field

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

      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@mongodb.com Ben Shteinfeld
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: