Browse Source

MT#58535 Fix a defect detected by Coverity Scan

Introduced by d7b8ebbc68

*** CID 1584501:  Control flow issues  (MISSING_BREAK)
/daemon/call_interfaces.c: 1825 in call_ng_main_flags()
1819                            call_ng_flags_str_list(out, value, call_ng_flags_replace, NULL);
1820                            break;
1821                    case CSH_LOOKUP("rtcp-mux"):
1822                    case CSH_LOOKUP("RTCP-mux"):
1823                            call_ng_flags_str_list(out, value, call_ng_flags_rtcp_mux, NULL);
1824                            break;
>>>     CID 1584501:  Control flow issues  (MISSING_BREAK)
>>>     The case for value "324" is not terminated by a "break" statement.
1825                    case CSH_LOOKUP("rtpp-flags"):;
1826                    case CSH_LOOKUP("rtpp_flags"):;
1827                            /* new dictionary to store rtpp_flags */
1828                            bencode_item_t * dict;
1829                            dict = bencode_dictionary(value->buffer);
1830                            assert(dict != NULL);

Change-Id: Iaa1d9b3bd31d32e48451c3a47f8e99fa3c755e63
pull/1819/head
Donat Zenichev 2 years ago
parent
commit
d1c4b44f79
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call_interfaces.c

+ 1
- 1
daemon/call_interfaces.c View File

@ -1822,7 +1822,7 @@ static void call_ng_main_flags(sdp_ng_flags *out, str *key, bencode_item_t *valu
case CSH_LOOKUP("RTCP-mux"): case CSH_LOOKUP("RTCP-mux"):
call_ng_flags_str_list(out, value, call_ng_flags_rtcp_mux, NULL); call_ng_flags_str_list(out, value, call_ng_flags_rtcp_mux, NULL);
break; break;
case CSH_LOOKUP("rtpp-flags"):;
case CSH_LOOKUP("rtpp-flags"):
case CSH_LOOKUP("rtpp_flags"):; case CSH_LOOKUP("rtpp_flags"):;
/* new dictionary to store rtpp_flags */ /* new dictionary to store rtpp_flags */
bencode_item_t * dict; bencode_item_t * dict;


Loading…
Cancel
Save