MT#57407 warning: this 'if' clause does not guard... (AmSdp.cpp)

This commit fixes that:

     AmSdp.cpp: In function 'void parse_sdp_media(AmSdp*, char*)':
     AmSdp.cpp:858:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        858 |         if (next > media_line)
            |         ^~
     AmSdp.cpp:860:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
        860 |           m.type = media_type(media);
            |           ^

Change-Id: Ie5b7760d3e11ec825ea68138d06eaeb150da202c
mr11.4.1
Donat Zenichev 2 years ago
parent 687050c4b4
commit a18d614504

@ -856,8 +856,10 @@ static void parse_sdp_media(AmSdp* sdp_msg, char* s)
next = parse_until(media_line, ' ');
string media;
if (next > media_line)
media = string(media_line, int(next-media_line)-1);
m.type = media_type(media);
media = string(media_line, int(next-media_line) - 1);
m.type = media_type(media);
if (m.type == MT_NONE) {
ERROR("parse_sdp_media: Unknown media type\n");
}

Loading…
Cancel
Save