Coverity analysis defect 100005: Structurally dead code

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

      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:
            Hannes Magnusson (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: