diff --git a/AK/Vector.h b/AK/Vector.h index 751952b987..327be79be8 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -491,7 +491,7 @@ public: ErrorOr try_extend(Vector&& other) { - if (is_empty()) { + if (is_empty() && capacity() <= other.capacity()) { *this = move(other); return {}; }