[Libreoffice-commits] core.git: extensions/source
Julien Nabet
serval2412 at yahoo.fr
Sat Mar 18 11:10:39 UTC 2017
extensions/source/scanner/sanedlg.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 415059bddf329feaf3a7b769e70f8641bdfffca6
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 18 11:29:50 2017 +0100
cppcheck: workaround nullpointer false positive with an assert
Change-Id: Ib94d64ed5076b5603e99fa9632d25e85395b6ff1
Reviewed-on: https://gerrit.libreoffice.org/35395
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
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] );
More information about the Libreoffice-commits
mailing list