Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/citrus Do not depend on failing malloc to set errno
details: https://anonhg.NetBSD.org/src/rev/c81f4301194b
branches: trunk
changeset: 779116:c81f4301194b
user: joerg <joerg%NetBSD.org@localhost>
date: Fri May 04 16:45:05 2012 +0000
description:
Do not depend on failing malloc to set errno
diffstat:
lib/libc/citrus/citrus_lookup.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5d7d9e044126 -r c81f4301194b lib/libc/citrus/citrus_lookup.c
--- a/lib/libc/citrus/citrus_lookup.c Fri May 04 12:28:03 2012 +0000
+++ b/lib/libc/citrus/citrus_lookup.c Fri May 04 16:45:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: citrus_lookup.c,v 1.6 2009/02/03 04:58:38 lukem Exp $ */
+/* $NetBSD: citrus_lookup.c,v 1.7 2012/05/04 16:45:05 joerg Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_lookup.c,v 1.6 2009/02/03 04:58:38 lukem Exp $");
+__RCSID("$NetBSD: citrus_lookup.c,v 1.7 2012/05/04 16:45:05 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -276,7 +276,7 @@
cl = malloc(sizeof(*cl));
if (cl == NULL)
- return errno;
+ return ENOMEM;
cl->cl_key = NULL;
cl->cl_keylen = 0;
Home |
Main Index |
Thread Index |
Old Index