diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 09:59:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 10:56:14 +0100 |
commit | 5ace3f3b4f2f916d8b2acab1b5cc0fe2a5a19dee (patch) | |
tree | 00cdcfc6ef33bc558bda62935d46377f033975d6 /extensions | |
parent | 62cb50fd9b97358114dcc4d0c1afdcdd04341b0c (diff) |
clang scan-build: various warnings
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/update/check/download.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/update/check/download.cxx b/extensions/source/update/check/download.cxx index 4df311a8b686..4111d1d1a319 100644 --- a/extensions/source/update/check/download.cxx +++ b/extensions/source/update/check/download.cxx @@ -152,9 +152,9 @@ progress_callback( void *clientp, double dltotal, double dlnow, double ultotal, OutData *out = reinterpret_cast < OutData * > (clientp); - OSL_ASSERT( out ); + assert(out); - if( ! out->StopCondition.check() ) + if (out && !out->StopCondition.check()) { double fPercent = 0; if ( dltotal + out->Offset ) |