summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-05-30 10:19:50 +0200
committerJose <jose@zeroc.com>2019-05-30 10:19:50 +0200
commit74f3fc9b92fcd42d683ff28c0f598dd9e24dfff0 (patch)
tree228976b09d88ce0229afb7632d23ef7a90c3edd0 /cpp/src/IceSSL
parentFix C++ warning: Value stored to 'c1' is never read (diff)
downloadice-74f3fc9b92fcd42d683ff28c0f598dd9e24dfff0.tar.bz2
ice-74f3fc9b92fcd42d683ff28c0f598dd9e24dfff0.tar.xz
ice-74f3fc9b92fcd42d683ff28c0f598dd9e24dfff0.zip
Fix C++ warnings: uninitialized value
Diffstat (limited to 'cpp/src/IceSSL')
-rw-r--r--cpp/src/IceSSL/SecureTransportCertificateI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceSSL/SecureTransportCertificateI.cpp b/cpp/src/IceSSL/SecureTransportCertificateI.cpp
index fced1cc0fed..faa097a4535 100644
--- a/cpp/src/IceSSL/SecureTransportCertificateI.cpp
+++ b/cpp/src/IceSSL/SecureTransportCertificateI.cpp
@@ -440,7 +440,7 @@ SecureTransportCertificateI::getAuthorityKeyIdentifier() const
if(property)
{
CFTypeRef type = 0;
- CFTypeRef value;
+ CFTypeRef value = 0;
if(CFDictionaryGetValueIfPresent(property.get(), kSecPropertyKeyType, &type))
{
if(CFEqual(type, kSecPropertyTypeSection))
@@ -479,7 +479,7 @@ SecureTransportCertificateI::getSubjectKeyIdentifier() const
if(property)
{
CFTypeRef type = 0;
- CFTypeRef value;
+ CFTypeRef value = 0;
if(CFDictionaryGetValueIfPresent(property.get(), kSecPropertyKeyType, &type))
{
if(CFEqual(type, kSecPropertyTypeSection))