]> granicus.if.org Git - openssl/commitdiff
Fix warnings.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Jul 2000 01:39:23 +0000 (01:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Jul 2000 01:39:23 +0000 (01:39 +0000)
In crypto/err/err.c need to initialise p to
NULL in case thread_hash is NULL. Otherwise
p will be uninitialized.

crypto/err/err.c
crypto/rand/rand.h

index 7ce9e8fb9aacd62b8f307032561a63daadcced4f..f108bc0b81a6868c515cd3124ce1870661f7e548 100644 (file)
@@ -644,7 +644,7 @@ static int pid_cmp(ERR_STATE *a, ERR_STATE *b)
 
 void ERR_remove_state(unsigned long pid)
        {
-       ERR_STATE *p,tmp;
+       ERR_STATE *p = NULL,tmp;
 
        if (thread_hash == NULL)
                return;
index 3ea37729f7f166dbfb639e9c9294c03c6a357b1a..971880edaa2a3d46790a0461d46ff017ab696625 100644 (file)
@@ -91,7 +91,7 @@ const char *RAND_file_name(char *file,int num);
 int RAND_status(void);
 int RAND_egd(const char *path);
 int RAND_egd_bytes(const char *path,int bytes);
-void ERR_load_RAND_strings(void);\r
+void ERR_load_RAND_strings(void);
 int RAND_poll(void);
 
 #ifdef  __cplusplus