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

Coverity analysis defect 100005: Structurally dead code

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

      Code block is unreachable because of the syntactic structure of the code

      Defect 100005 (STATIC_C)
      Checker UNREACHABLE (subcategory none)
      File: /src/mongoc/mongoc-handshake.c
      Function _get_os_type
      /src/mongoc/mongoc-handshake.c, line: 121
      This code cannot be reached: "return bson_strndup("unknow...".

             return bson_strndup ("unknown", HANDSHAKE_OS_TYPE_MAX);
      

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

              Created:
              Updated:
              Resolved: