summaryrefslogtreecommitdiffstats
path: root/crypto/ui
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-07-26 20:55:17 +0000
committerNils Larsch <nils@openssl.org>2005-07-26 20:55:17 +0000
commit3de6d65ea3cb3e8779494629260edc4b6874e2f8 (patch)
tree69eb243ccee1b02a2c4105576fcf060a06d249c6 /crypto/ui
parentfdb0a6e0041a2ca941f1fc1084c028f73a9ef53b (diff)
improved error checking and some fixes
PR: 1170 Submitted by: Yair Elharrar Reviewed and edited by: Nils Larsch
Diffstat (limited to 'crypto/ui')
-rw-r--r--crypto/ui/ui_lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/ui/ui_lib.c b/crypto/ui/ui_lib.c
index 1a8f3ce113..7ab249c3be 100644
--- a/crypto/ui/ui_lib.c
+++ b/crypto/ui/ui_lib.c
@@ -620,8 +620,10 @@ UI_METHOD *UI_create_method(char *name)
UI_METHOD *ui_method = (UI_METHOD *)OPENSSL_malloc(sizeof(UI_METHOD));
if (ui_method)
+ {
memset(ui_method, 0, sizeof(*ui_method));
- ui_method->name = BUF_strdup(name);
+ ui_method->name = BUF_strdup(name);
+ }
return ui_method;
}