mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
fix warning of old style C++ variable scope declared in 'for'. bug 15778. r=slamm
This commit is contained in:
parent
452378ee8a
commit
68de88b11a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user