Coverity analysis defect 76624: Side effect in assertion

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Assertion contains an operation with a side effect

      Defect 76624 (STATIC_C)
      Checker ASSERT_SIDE_EFFECT (subcategory none)
      File: /src/mongoc/mongoc-gridfs-file.c
      Function _mongoc_gridfs_file_extend
      /src/mongoc/mongoc-gridfs-file.c, line: 601
      Assignment "file->length = target_length" has a side effect. This code will work differently in a non-debug build.

             BSON_ASSERT (file->length = target_length);
      

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: