mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1045110 - Add parens around assignment in "while" condition, to silence GCC Wparentheses warning. r=njn
This commit is contained in:
parent
2a9de5bb3b
commit
ff3ada8eb7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user