summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-27 10:33:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-27 12:47:39 +0200
commitaa81005151c4c266173cf7460b4db87339c921f5 (patch)
treea9512d7ab1f85726ed3d0e3624c7efd2c33b1adc /sw
parent97622503fe7ed58820b7dfc813b3b3ea8f5ad057 (diff)
cid#1500516 Explicit null dereferenced
Change-Id: I3fda15451e55d4ee1b296cddb1f6933d81faae3f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138924 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 18610cc41f5a..fc9d7a64d780 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -264,8 +264,8 @@ void SwWW8ImplReader::ReadEmbeddedData(SvStream& rStrm, SwDocShell const * pDocS
{
xLongName.reset(new OUString(read_uInt16s_ToOUString(rStrm, nStrLen - 1)));
rStrm.SeekRel(sizeof(sal_Unicode)); // skip null-byte at end
+ lclGetAbsPath( *xLongName, 0 , pDocShell);
}
- lclGetAbsPath( *xLongName, 0 , pDocShell);
}
// file link or URL
else if( ::get_flag( nFlags, WW8_HLINK_BODY ) )