Closed Bug 1092923 Opened 6 years ago Closed 6 years ago
Fix -Wsometimes-uninitialized nsresult warnings in editor/libeditor
Bug 1088054 removed some editor code paths, leaving some nsresults uninitialized: > editor/libeditor/nsHTMLEditRules.cpp:4952:7 [-Wsometimes-uninitialized] variable 'res' is used uninitialized whenever 'if' condition is true > editor/libeditor/nsHTMLEditorStyle.cpp:1120:7 [-Wsometimes-uninitialized] variable 'result' is used uninitialized whenever 'if' condition is false In nsHTMLEditRules.cpp, I moved the GetFirstEditableChild() check earlier in the function so, if firstChild is null, we can return without calling GetLastEditableChild().
I already r+ed a simpler fix in bug 1093245.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1093245
You need to log in before you can comment on or make changes to this bug.