Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cc_deque.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ enum cc_stat cc_deque_zip_iter_add(CC_DequeZipIter *iter, void *e1, void *e2)
/* While this check is performed by a call to cc_deque_add_at, it is necessary to know
in advance whether both deque buffers have enough room before inserting new elements
because this operation must insert either both elements, or none.*/
if ((iter->d1->capacity == iter->d1->size && expand_capacity(iter->d1) != CC_OK) &&
if ((iter->d1->capacity == iter->d1->size && expand_capacity(iter->d1) != CC_OK) ||
(iter->d2->capacity == iter->d2->size && expand_capacity(iter->d2) != CC_OK)) {
return CC_ERR_ALLOC;
}
Expand Down