Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-914

Coverity analysis defect 49573: Unchecked return value

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

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

      Defect 49573 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongoc/mongoc-collection.c
      Function mongoc_collection_save
      /src/mongoc/mongoc-collection.c, line: 1330
      Calling "bson_append_iter" without checking return value (as is done elsewhere 3 out of 4 times).

             bson_append_iter(&selector, NULL, 0, &iter);
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: