diff options
author | djm <> | 2008-09-06 12:15:56 +0000 |
---|---|---|
committer | djm <> | 2008-09-06 12:15:56 +0000 |
commit | 5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80 (patch) | |
tree | aba68249883aa9d2361d92eef69a81d0c4961732 /src/lib/libcrypto/ui/ui_err.c | |
parent | f6198d4d0ab97685dc56be2d48715ed39fcc74b9 (diff) | |
download | openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.tar.gz openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.tar.bz2 openbsd-5a3c0a05c7f2c5d3c584b7c8d6aec836dd724c80.zip |
import of OpenSSL 0.9.8h
Diffstat (limited to 'src/lib/libcrypto/ui/ui_err.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_err.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ui/ui_err.c b/src/lib/libcrypto/ui/ui_err.c index d983cdd66f..786bd0dbc3 100644 --- a/src/lib/libcrypto/ui/ui_err.c +++ b/src/lib/libcrypto/ui/ui_err.c | |||
@@ -101,15 +101,12 @@ static ERR_STRING_DATA UI_str_reasons[]= | |||
101 | 101 | ||
102 | void ERR_load_UI_strings(void) | 102 | void ERR_load_UI_strings(void) |
103 | { | 103 | { |
104 | static int init=1; | 104 | #ifndef OPENSSL_NO_ERR |
105 | 105 | ||
106 | if (init) | 106 | if (ERR_func_error_string(UI_str_functs[0].error) == NULL) |
107 | { | 107 | { |
108 | init=0; | ||
109 | #ifndef OPENSSL_NO_ERR | ||
110 | ERR_load_strings(0,UI_str_functs); | 108 | ERR_load_strings(0,UI_str_functs); |
111 | ERR_load_strings(0,UI_str_reasons); | 109 | ERR_load_strings(0,UI_str_reasons); |
112 | #endif | ||
113 | |||
114 | } | 110 | } |
111 | #endif | ||
115 | } | 112 | } |