Skip to content

Commit

Permalink
MT#55283 shortcut list retrieval
Browse files Browse the repository at this point in the history
Change-Id: I0c106cc560eccaf13e2c81db7f8c056a5826a2a2
  • Loading branch information
rfuchs committed Jul 30, 2024
1 parent a0896df commit 1f4c0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/call_interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -2874,8 +2874,8 @@ static void stop_recording_fn(bencode_item_t *input, call_t *call) {
}
}
// ... or `flags=[pause]`
bencode_item_t *item = bencode_dictionary_get(input, "flags");
if (item && item->type == BENCODE_LIST && item->child) {
bencode_item_t *item = bencode_dictionary_get_expect(input, "flags", BENCODE_LIST);
if (item) {
for (bencode_item_t *child = item->child; child; child = child->sibling) {
if (bencode_strcmp(child, "pause") == 0) {
pause_recording_fn(input, call);
Expand Down

0 comments on commit 1f4c0d8

Please sign in to comment.