Change the printing mahine used by BIO_printf() and friends so it can
[oweals/openssl.git] / crypto / err / err.c
index 7ce9e8fb9aacd62b8f307032561a63daadcced4f..bfecb86c754b65b23cfd8fe98337cdd68700217a 100644 (file)
@@ -535,7 +535,7 @@ char *ERR_error_string(unsigned long e, char *ret)
        static char buf[256];
 
        if (ret == NULL) ret=buf;
-       ERR_error_string_n(e, buf, 256);
+       ERR_error_string_n(e, ret, 256);
 
        return(ret);
        }
@@ -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;