Browse Source

MT#60476 sdp_replace: set `keep_zero_address` in one line

Instead of setting it in two lines via temporary variable,
just negate it in one line for laconicity reasons.

Change-Id: Ie65d68ef5b8082f5de544ab2a9833a59d5e01d9a
rfuchs/test
Donat Zenichev 1 year ago
parent
commit
319cefe165
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      daemon/sdp.c

+ 1
- 2
daemon/sdp.c View File

@ -3393,8 +3393,7 @@ int sdp_replace(struct sdp_chopper *chop, sdp_sessions_q *sessions,
}
}
bool media_has_ice = MEDIA_ISSET(call_media, ICE);
bool keep_zero_address = ! media_has_ice;
bool keep_zero_address = !MEDIA_ISSET(call_media, ICE);
if (session->connection.parsed && sess_conn &&
flags->ice_option != ICE_FORCE_RELAY) {


Loading…
Cancel
Save