Browse Source

MT#56128 SDP manipulations: simplify CMD_ADD lookup

Do not use the `g_queue_is_empty()` to check the emptiness
of the `add_commands_*` GQueue. It's enough to check the pointer
and the first `->head` value.

Change-Id: Ie01f45d5f8bbaa5af3a09594cce145a0e83943c2
pull/1640/head
Donat Zenichev 3 years ago
parent
commit
ada2771215
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/sdp.c

+ 1
- 1
daemon/sdp.c View File

@ -355,7 +355,7 @@ static int sdp_manipulate_check(enum command_type command_type,
default: /* MT_UNKNOWN */
q_ptr = &sdp_manipulations->add_commands_glob;
}
if (q_ptr && q_ptr->head && !g_queue_is_empty(q_ptr))
if (q_ptr && q_ptr->head)
return 1;
break;


Loading…
Cancel
Save