diff --git a/layout/svg/base/src/nsSVGPatternFrame.cpp b/layout/svg/base/src/nsSVGPatternFrame.cpp index 4146540df6e..4676719e78b 100644 --- a/layout/svg/base/src/nsSVGPatternFrame.cpp +++ b/layout/svg/base/src/nsSVGPatternFrame.cpp @@ -721,7 +721,7 @@ NS_IMETHODIMP nsSVGPatternFrame::GetHeight(float *aHeight) { nsSVGLength2 *len; - if ((len = GetHeight()) = nsnull) { + if ((len = GetHeight()) == nsnull) { *aHeight = 0.0f; return NS_ERROR_FAILURE; }