Closed Bug 477963 Opened 11 years ago Closed 11 years ago
fix gcc use of uninitialized variable warning in ns
Block Frame's Find Child Containing
gcc warns about uninitialized use of |child| in FindChildContaining in nsBlockFrame.cpp. The warning seems correct given that the loop is a while loop when it really should be a do-while loop, since we're assuming that the aFrame given is non-null. This adds an assertion and changes the loop, which silences the warning (and saves a test on entering the loop).
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Priority: -- → P4
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.