Index: Source/wtf/Vector.h |
diff --git a/Source/wtf/Vector.h b/Source/wtf/Vector.h |
index ed58774fe7f2980cc6b536181da877dc8b28fb81..7c0d0af1d3db8f420377b86e5b8809ace6839eb1 100644 |
--- a/Source/wtf/Vector.h |
+++ b/Source/wtf/Vector.h |
@@ -224,7 +224,9 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE; |
{ |
static bool compare(const T* a, const T* b, size_t size) |
{ |
- return std::equal(a, a + size, b); |
+ if (LIKELY(a && b)) |
+ return std::equal(a, a + size, b); |
+ return !a && !b; |
} |
}; |