diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-11 09:02:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-11 09:02:38 +0100 |
commit | f289cf086d24bbc4d3f164c42f58cb492a5b2506 (patch) | |
tree | 7309aba475b90ddc27b1d3f160ff8448dda96520 /sw | |
parent | 768567e9591cda9bd1345efb1a7eb414c386b8aa (diff) |
Do not use front of empty vector.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/types.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/types.hxx b/sw/source/filter/ww8/types.hxx index 012b87b21dfd..6efb2e77c0aa 100644 --- a/sw/source/filter/ww8/types.hxx +++ b/sw/source/filter/ww8/types.hxx @@ -36,7 +36,7 @@ namespace ww class bytes : public std::vector<sal_uInt8> { public: - const sal_uInt8* data() const { return &front(); } + const sal_uInt8* data() const { return empty() ? 0 : &front(); } }; enum WordVersion {eWW2 = 2, eWW6 = 6, eWW7 = 7, eWW8 = 8}; |