Applies to 1.0.1 and HEAD. Credit goes to "cppcheck". Signed-off-by: Thomas Jarosch <thomas.jaro...@intra2net.com> --- crypto/dso/dso_vms.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/crypto/dso/dso_vms.c b/crypto/dso/dso_vms.c index 45adfb1..eee20d1 100644 --- a/crypto/dso/dso_vms.c +++ b/crypto/dso/dso_vms.c @@ -160,7 +160,7 @@ static int vms_load(DSO *dso) # define DSO_MALLOC OPENSSL_malloc #endif /* __INITIAL_POINTER_SIZE == 64 [else] */ - DSO_VMS_INTERNAL *p; + DSO_VMS_INTERNAL *p = NULL; #if __INITIAL_POINTER_SIZE == 64 # pragma pointer_size restore -- 1.7.4.4
>From 3b4e8dd7c53c5e67ecd277b5787be3d8da37bb4d Mon Sep 17 00:00:00 2001 From: Thomas Jarosch <thomas.jaro...@intra2net.com> Date: Sun, 28 Aug 2011 01:57:33 +0200 Subject: [PATCH 4/4] Always initialize pointer. Otherwise we might crash in "goto err;". Applies to 1.0.1 and HEAD. Credit goes to "cppcheck". Signed-off-by: Thomas Jarosch <thomas.jaro...@intra2net.com> --- crypto/dso/dso_vms.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/crypto/dso/dso_vms.c b/crypto/dso/dso_vms.c index 45adfb1..eee20d1 100644 --- a/crypto/dso/dso_vms.c +++ b/crypto/dso/dso_vms.c @@ -160,7 +160,7 @@ static int vms_load(DSO *dso) # define DSO_MALLOC OPENSSL_malloc #endif /* __INITIAL_POINTER_SIZE == 64 [else] */ - DSO_VMS_INTERNAL *p; + DSO_VMS_INTERNAL *p = NULL; #if __INITIAL_POINTER_SIZE == 64 # pragma pointer_size restore -- 1.7.4.4