mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +02:00
Be defensive
This commit is contained in:
@@ -2242,8 +2242,10 @@ finish_remote_data_if_all_items_received(Window *w, unsigned mime_item_idx) {
|
|||||||
|
|
||||||
static bool
|
static bool
|
||||||
all_children_complete(DragRemoteItem *parent) {
|
all_children_complete(DragRemoteItem *parent) {
|
||||||
for (size_t i = 0; i < parent->children_sz; i++) {
|
if (parent->children) {
|
||||||
if (!parent->children[i].completed) return false;
|
for (size_t i = 0; i < parent->children_sz; i++) {
|
||||||
|
if (!parent->children[i].completed) return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user