[xmlsec] avoid may be used uninitialized errors due to complex ifdefs



commit 6b700342aee35d048143f6a021c3c572a4be2117
Author: Aleksey Sanin <aleksey aleksey com>
Date:   Wed Feb 25 11:01:28 2015 -0800

    avoid may be used uninitialized errors due to complex ifdefs

 src/dl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dl.c b/src/dl.c
index 5aa08f3..3005816 100644
--- a/src/dl.c
+++ b/src/dl.c
@@ -89,7 +89,7 @@ XMLSEC_PTR_TO_FUNC_IMPL(xmlSecCryptoGetFunctionsCallback)
 static xmlSecCryptoDLLibraryPtr
 xmlSecCryptoDLLibraryCreate(const xmlChar* name) {
     xmlSecCryptoDLLibraryPtr lib;
-    xmlSecCryptoGetFunctionsCallback * getFunctions;
+    xmlSecCryptoGetFunctionsCallback * getFunctions = NULL;
 
     xmlSecAssert2(name != NULL, NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]