Coverity analysis defect 162882: Unchecked return value from library

XMLWordPrintableJSON

    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2025-08-04
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Unchecked return value from library

      The function returns a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly. Value returned from a library function is not checked for errors before being used. This value may indicate an error condition.
      /data/mci/ca51a75ec01e2db4c86c36e81ffcbc1a/bazel_cache/9609e6a8b9a79735a5ea9f2aad32fa3a/execroot/_main/src/mongo/unittest/inline_auto_update.cpp:303: CHECKED_RETURN 162882 Calling "rename(tempFileName.c_str(), fileName->c_str())" without checking return value. This library function may fail and return an error code.

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

              Created:
              Updated:
              Resolved: