summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/xdr_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/rpc/xdr_array.c')
-rw-r--r--lib/libc/rpc/xdr_array.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/rpc/xdr_array.c b/lib/libc/rpc/xdr_array.c
index 43e9ebea534..f24847e07d8 100644
--- a/lib/libc/rpc/xdr_array.c
+++ b/lib/libc/rpc/xdr_array.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_array.c,v 1.10 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: xdr_array.c,v 1.11 2015/09/01 19:54:01 deraadt Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -86,11 +86,8 @@ xdr_array(XDR *xdrs,
if (c == 0)
return (TRUE);
*addrp = target = mem_alloc(nodesize);
- if (target == NULL) {
- (void) fprintf(stderr,
- "xdr_array: out of memory\n");
+ if (target == NULL)
return (FALSE);
- }
memset(target, 0, nodesize);
break;
case XDR_FREE: