Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4078

CID 1343334: Uninitialized members in Rollback.cc

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1.0
    • Component/s: Management API
    • Labels:
      None

      Description

      ** CID 1343334:  Uninitialized members  (UNINIT_CTOR)
      /mgmt/Rollback.cc: 101 in Rollback::Rollback(const char *, bool, Rollback*, unsigned int)()
      
      
      ________________________________________________________________________________________________________
      *** CID 1343334:  Uninitialized members  (UNINIT_CTOR)
      /mgmt/Rollback.cc: 101 in Rollback::Rollback(const char *, bool, Rollback*, unsigned int)()
      95     
      96       // If we are not doing backups, bail early.
      97       if ((numberBackups <= 0) || (flags & CONFIG_FLAG_UNVERSIONED)) {
      98         currentVersion = 0;
      99         setLastModifiedTime();
      100         numberBackups = 0;
         CID 1343334:  Uninitialized members  (UNINIT_CTOR)
         Non-static class member "numVersions" is not initialized in this constructor nor in any functions that it calls.
      101         return;
      102       }
      103     
      104       currentVersion = 0; // Prevent UMR with stat file
      105       highestSeen = findVersions_ml(versionQ);
      106     
      
      

        Attachments

          Activity

            People

            • Assignee:
              briang Brian Geffon
              Reporter:
              zwoop Leif Hedstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: