mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
Be defensive
This commit is contained in:
parent
3e0850a864
commit
7e59c08fc0
1 changed files with 4 additions and 2 deletions
|
|
@ -2242,8 +2242,10 @@ finish_remote_data_if_all_items_received(Window *w, unsigned mime_item_idx) {
|
|||
|
||||
static bool
|
||||
all_children_complete(DragRemoteItem *parent) {
|
||||
for (size_t i = 0; i < parent->children_sz; i++) {
|
||||
if (!parent->children[i].completed) return false;
|
||||
if (parent->children) {
|
||||
for (size_t i = 0; i < parent->children_sz; i++) {
|
||||
if (!parent->children[i].completed) return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue