Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5730

Coverity analysis defect 114077: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 2
    • Storage Engines 2020-03-09, Storage Engines 2020-03-23

      Value returned from a function is not checked for errors before being used

      Defect 114077 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /test/csuite/incr_backup/main.c
      Function reopen_file
      /test/csuite/incr_backup/main.c, line: 516
      Calling "close" without checking return value (as is done elsewhere 7 out of 9 times).

                  close(*fdp);
      

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: