diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-03-18 11:29:50 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-03-18 11:10:17 +0000 |
commit | 415059bddf329feaf3a7b769e70f8641bdfffca6 (patch) | |
tree | 5de4c9a10db79fa234794305ab49eb9240fc4d38 /extensions | |
parent | 468d2964e9c30df4cdbfcab000b1f513021a22d3 (diff) |
cppcheck: workaround nullpointer false positive with an assert
Change-Id: Ib94d64ed5076b5603e99fa9632d25e85395b6ff1
Reviewed-on: https://gerrit.libreoffice.org/35395
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index 951b0d2dbb09..50033df310a9 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -396,6 +396,7 @@ void SaneDlg::InitFields() nValue = mrSane.GetRange( nOption, pDouble ); if( nValue > -1 ) { + assert(pDouble); if( nValue ) { mpReslBox->SetMin( (long)pDouble[0] ); |