fix warning of old style C++ variable scope declared in 'for'. bug 15778. r=slamm

This commit is contained in:
jband%netscape.com 1999-10-08 00:11:05 +00:00
parent 452378ee8a
commit 68de88b11a

View File

@ -275,7 +275,8 @@ xpcarraytest::DoubleString(PRUint32 *count, char **str)
if(!out)
return NS_ERROR_OUT_OF_MEMORY;
for(PRUint32 k = 0; k < *count; k++)
PRUint32 k;
for(k = 0; k < *count; k++)
out[k*2] = out[(k*2)+1] = (*str)[k];
out[k*2] = '\0';
nsAllocator::Free(*str);