From 8d9412c1e85fece0c3854b78a5c1dc57d9da6c2a Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 31 Mar 2011 19:02:03 -0600 Subject: [PATCH] remove redundant statement in parseUtf8 VM heap allocated memory is already zero'd out, so there's no need to explicitly end strings with a null character. --- src/machine.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/machine.cpp b/src/machine.cpp index 94117cef1e..4b50be2011 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -758,7 +758,6 @@ parseUtf8(Thread* t, Stream& s, unsigned length) value = v; } - byteArrayBody(t, value, vi) = 0; return value; }