prepare for next release
[oweals/openssl.git] / crypto / pkcs7 / pkcs7err.c
index 4cd293472ff2eb9571dd54f6a96f249f93a81f6d..c0e3d4cd3336b8d750a0e1928c3f84839d60e437 100644 (file)
@@ -156,15 +156,12 @@ static ERR_STRING_DATA PKCS7_str_reasons[]=
 
 void ERR_load_PKCS7_strings(void)
        {
-       static int init=1;
+#ifndef OPENSSL_NO_ERR
 
-       if (init)
+       if (ERR_func_error_string(PKCS7_str_functs[0].error) == NULL)
                {
-               init=0;
-#ifndef OPENSSL_NO_ERR
                ERR_load_strings(0,PKCS7_str_functs);
                ERR_load_strings(0,PKCS7_str_reasons);
-#endif
-
                }
+#endif
        }