diff options
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_err.c')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_err.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_err.c b/src/lib/libcrypto/dsa/dsa_err.c index d7fac69154..768711994b 100644 --- a/src/lib/libcrypto/dsa/dsa_err.c +++ b/src/lib/libcrypto/dsa/dsa_err.c | |||
@@ -100,15 +100,12 @@ static ERR_STRING_DATA DSA_str_reasons[]= | |||
100 | 100 | ||
101 | void ERR_load_DSA_strings(void) | 101 | void ERR_load_DSA_strings(void) |
102 | { | 102 | { |
103 | static int init=1; | 103 | #ifndef OPENSSL_NO_ERR |
104 | 104 | ||
105 | if (init) | 105 | if (ERR_func_error_string(DSA_str_functs[0].error) == NULL) |
106 | { | 106 | { |
107 | init=0; | ||
108 | #ifndef OPENSSL_NO_ERR | ||
109 | ERR_load_strings(0,DSA_str_functs); | 107 | ERR_load_strings(0,DSA_str_functs); |
110 | ERR_load_strings(0,DSA_str_reasons); | 108 | ERR_load_strings(0,DSA_str_reasons); |
111 | #endif | ||
112 | |||
113 | } | 109 | } |
110 | #endif | ||
114 | } | 111 | } |