summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-06-02 15:10:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-06-02 15:24:57 +0100
commitda220c87700064f83c1312148531a9c0fdff4aa3 (patch)
tree59aa7deb8adfaef939e6186a4da89ffdc3a249d8
parentf6ed2305abb0289ad51605ceeaee607a0bc8d7bd (diff)
coverity#1362484 Dereference after null check
maybe this is what was wanted, still looks a bit dubious, won't crash straight away at least Change-Id: I1be934af9d7ec95f3a7079f2f34a3e3661311944
-rw-r--r--sw/source/core/doc/tblafmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 229e9c95dd81..1344b13d4dee 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.cxx
@@ -700,7 +700,7 @@ SwBoxAutoFormat& SwTableAutoFormat::GetBoxFormat( sal_uInt8 nPos )
// If default doesn't exist yet:
if( !pDfltBoxAutoFormat )
pDfltBoxAutoFormat = new SwBoxAutoFormat();
- *pFormat = *pDfltBoxAutoFormat;
+ pFormat = pDfltBoxAutoFormat;
}
return *pFormat;
}