From c4e3191290f7dc034878e8c9eee2f395db280afd Mon Sep 17 00:00:00 2001 From: beck <> Date: Tue, 22 Jul 2014 02:21:20 +0000 Subject: Kill a bunch more BUF_strdup's - these are converted to have a check for NULL before an intrinsic strdup. ok miod@ --- src/lib/libcrypto/ui/ui_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/ui') diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index 4fabcd9909..baf86d7635 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ui_lib.c,v 1.27 2014/07/13 16:03:10 beck Exp $ */ +/* $OpenBSD: ui_lib.c,v 1.28 2014/07/22 02:21:20 beck Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2001. */ @@ -585,8 +585,8 @@ UI_create_method(char *name) { UI_METHOD *ui_method = calloc(1, sizeof(UI_METHOD)); - if (ui_method) - ui_method->name = BUF_strdup(name); + if (ui_method && name) + ui_method->name = strdup(name); return ui_method; } -- cgit v1.2.3-55-g6feb