diff --git a/apps/ca.c b/apps/ca.c
index 93f992b2f412185998d7b56a6a24ac8221639524..fc3fae2c199b7119583c3f9db2feefab8e3c4e99 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -266,7 +266,7 @@ int MAIN(int argc, char **argv)
 #undef BSIZE
 #define BSIZE 256
 	MS_STATIC char buf[3][BSIZE];
-	char *randfile;
+	char *randfile=NULL;
 
 #ifdef EFENCE
 EF_PROTECT_FREE=1;
diff --git a/crypto/dh/dhtest.c b/crypto/dh/dhtest.c
index 687ce71611aef5caee3719c68ba2a4b40ac6d033..dbdb9638283ce6627deb38beaa9b8f6a55d6c822 100644
--- a/crypto/dh/dhtest.c
+++ b/crypto/dh/dhtest.c
@@ -89,7 +89,8 @@ static void MS_CALLBACK cb(int p, int n, void *arg);
 
 int main(int argc, char *argv[])
 	{
-	DH *a,*b;
+	DH *a;
+	DH *b=NULL;
 	char buf[12];
 	unsigned char *abuf=NULL,*bbuf=NULL;
 	int i,alen,blen,aout,bout,ret=1;