diff options
Diffstat (limited to 'xmlsecurity/source/xmlsec/nss')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/secerror.cxx | 2 | ||||
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/secerror.cxx b/xmlsecurity/source/xmlsec/nss/secerror.cxx index 0c2f71122849..0eef949e1bcb 100644 --- a/xmlsecurity/source/xmlsec/nss/secerror.cxx +++ b/xmlsecurity/source/xmlsec/nss/secerror.cxx @@ -75,7 +75,6 @@ getCertError(PRErrorCode errNum) void printChainFailure(CERTVerifyLog *log) { - unsigned long errorFlags = 0; unsigned int depth = (unsigned int)-1; const char * specificError = NULL; const char * issuer = NULL; @@ -84,6 +83,7 @@ printChainFailure(CERTVerifyLog *log) if (log->count > 0) { xmlsec_trace("Bad certifcation path:"); + unsigned long errorFlags = 0; for (node = log->head; node; node = node->next) { if (depth != node->depth) diff --git a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx index f12632d3da67..e1448045ad6e 100644 --- a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx @@ -347,7 +347,6 @@ bool getMozillaCurrentProfile( mozilla::MozillaProductType_Mozilla, mozilla::MozillaProductType_Firefox, mozilla::MozillaProductType_Default }; - int nProduct = 4; uno::Reference<uno::XInterface> xInstance = rxMSF->createInstance( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.mozilla.MozillaBootstrap")) ); @@ -359,6 +358,7 @@ bool getMozillaCurrentProfile( if (xMozillaBootstrap.is()) { + int nProduct = 4; for (int i=0; i<nProduct; i++) { ::rtl::OUString profile = xMozillaBootstrap->getDefaultProfile(productTypes[i]); |