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

Coverity false positive on fopen call

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • WT3.2.0, 4.1.10
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 2
    • Storage Engines 2019-03-25

      test/utility/misc.c: testutil_progress()

      168        if (opts->progress_fp == NULL)
         	
      CID 1399760 (#1 of 1): Side effect in assertion (ASSERT_SIDE_EFFECT)
      assignment_where_comparison_intended: Assignment opts->progress_fp = fopen(opts->progress_file_name, "w") has a side effect. This code will work differently in a non-debug build.
         	Did you intend to use a comparison ("==") instead?
      169                testutil_assert((opts->progress_fp =
      170                    fopen(opts->progress_file_name, "w")) != NULL);
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: