diff options
Diffstat (limited to 'crypto/store/str_err.c')
-rw-r--r-- | crypto/store/str_err.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/store/str_err.c b/crypto/store/str_err.c index 5c6fe832e8..6fee649822 100644 --- a/crypto/store/str_err.c +++ b/crypto/store/str_err.c @@ -200,15 +200,12 @@ static ERR_STRING_DATA STORE_str_reasons[]= void ERR_load_STORE_strings(void) { - static int init=1; +#ifndef OPENSSL_NO_ERR - if (init) + if (ERR_func_error_string(STORE_str_functs[0].error) == NULL) { - init=0; -#ifndef OPENSSL_NO_ERR ERR_load_strings(0,STORE_str_functs); ERR_load_strings(0,STORE_str_reasons); -#endif - } +#endif } |