summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-11-21 20:14:46 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-11-21 20:14:46 +0000
commit115fc340cb509f2c8def38561088b1c430591d3c (patch)
tree7e4ec2eec25b118f933248777ad4f99ec6638585 /crypto/pem
parent900f7a87760d1053127976480efcd71371787d6e (diff)
Rebuild error file C source files.
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_err.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/pem/pem_err.c b/crypto/pem/pem_err.c
index 7837cde153..3133563d77 100644
--- a/crypto/pem/pem_err.c
+++ b/crypto/pem/pem_err.c
@@ -124,15 +124,12 @@ static ERR_STRING_DATA PEM_str_reasons[]=
void ERR_load_PEM_strings(void)
{
- static int init=1;
+#ifndef OPENSSL_NO_ERR
- if (init)
+ if (ERR_func_error_string(PEM_str_functs[0].error) == NULL)
{
- init=0;
-#ifndef OPENSSL_NO_ERR
ERR_load_strings(0,PEM_str_functs);
ERR_load_strings(0,PEM_str_reasons);
-#endif
-
}
+#endif
}