Bug 1045110 - Add parens around assignment in "while" condition, to silence GCC Wparentheses warning. r=njn

This commit is contained in:
Daniel Holbert 2014-07-28 17:09:00 +02:00
parent 2a9de5bb3b
commit ff3ada8eb7

View File

@ -100,7 +100,7 @@ GetProcSelfSmapsPrivate(int64_t* aN)
char* ptr = buffer;
end[carryOver] = '\0';
// We are looking for lines like "Private_{Clean,Dirty}: 4 kB".
while (ptr = strstr(ptr, "Private")) {
while ((ptr = strstr(ptr, "Private"))) {
if (ptr >= end) {
break;
}