Uploaded image for project: 'Z-Push'
  1. Z-Push
  2. ZP-1419

Structurally dead code (UNREACHABLE)

    Details

    • Type: Bug
    • Status: QA
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.4.3 beta 1, 2.4.3
    • Component/s: None
    • Labels:
      None

      Description

      Found by coverity.

      Structurally dead code (UNREACHABLE)
      unreachable: This code cannot be reached: ZLog::Write(LOGLEVEL_WARN, ....

      imap.php line 2111

      else {
                  if (isset($this->permanentStorage->fmFimapFidLowercase[strtolower($imapid)])) {
                      $folderid = $this->permanentStorage->fmFimapFidLowercase[strtolower($imapid)];
                      ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getFolderIdFromImapId('%s', false) = %s", $imapid, $folderid));
                      return $folderid;
                  }
                  else {
                      ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getFolderIdFromImapId('%s', false) = %s", $imapid, 'not found'));
                      return false;
                  }
              }
      ZLog::Write(LOGLEVEL_WARN, sprintf("BackendIMAP->getFolderIdFromImapId('%s') = %s", $imapid, 'not initialized!'));
      

      https://scan4.coverity.com/reports.htm#v37557/p14761/fileInstanceId=42305101&defectInstanceId=7831384&mergedDefectId=278712&eventId=7831384-0

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Manfred Manfred Kutas
                Reporter:
                Manfred Manfred Kutas
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: