Index: Source/JavaScriptCore/wtf/FastMalloc.cpp |
=================================================================== |
--- Source/JavaScriptCore/wtf/FastMalloc.cpp (revision 86171) |
+++ Source/JavaScriptCore/wtf/FastMalloc.cpp (working copy) |
@@ -183,15 +183,12 @@ |
char* fastStrDup(const char* src) |
{ |
- int len = strlen(src) + 1; |
+ size_t len = strlen(src) + 1; |
char* dup = static_cast<char*>(fastMalloc(len)); |
- |
- if (dup) |
- memcpy(dup, src, len); |
- |
+ memcpy(dup, src, len); |
return dup; |
} |
- |
+ |
TryMallocReturnValue tryFastZeroedMalloc(size_t n) |
{ |
void* result; |