Fix strange formatting by indent
[oweals/openssl.git] / crypto / x509 / x509_err.c
index b7bc383a50299c53da3e49ea808f916120f128da..fb377292dac56bf99ca4423282b2ee3abb3b97d0 100644 (file)
@@ -150,15 +150,12 @@ static ERR_STRING_DATA X509_str_reasons[]=
 
 void ERR_load_X509_strings(void)
        {
-       static int init=1;
+#ifndef OPENSSL_NO_ERR
 
-       if (init)
+       if (ERR_func_error_string(X509_str_functs[0].error) == NULL)
                {
-               init=0;
-#ifndef OPENSSL_NO_ERR
                ERR_load_strings(0,X509_str_functs);
                ERR_load_strings(0,X509_str_reasons);
-#endif
-
                }
+#endif
        }