Prepare for next version.
[oweals/openssl.git] / crypto / bio / bio_err.c
index 426f8d13c6bde15d30a45637b98a8beb302e12f6..6603f1c74dc8234e93ce8b0ee769d0de974cf097 100644 (file)
@@ -143,15 +143,12 @@ static ERR_STRING_DATA BIO_str_reasons[]=
 
 void ERR_load_BIO_strings(void)
        {
-       static int init=1;
+#ifndef OPENSSL_NO_ERR
 
-       if (init)
+       if (ERR_func_error_string(BIO_str_functs[0].error) == NULL)
                {
-               init=0;
-#ifndef OPENSSL_NO_ERR
                ERR_load_strings(0,BIO_str_functs);
                ERR_load_strings(0,BIO_str_reasons);
-#endif
-
                }
+#endif
        }