Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Exit via the correct cleanup path; we can't mun...
details: https://anonhg.NetBSD.org/src/rev/8502cb54b73e
branches: trunk
changeset: 581375:8502cb54b73e
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 01 05:24:54 2005 +0000
description:
Exit via the correct cleanup path; we can't munmap until the mmap has
been performed.
Detected with gcc -Wuninitialized.
(The bug was introduced in rev 1.22. Hi Ragge! :)
diffstat:
lib/libc/gen/nlist_elf32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a732407c2c2b -r 8502cb54b73e lib/libc/gen/nlist_elf32.c
--- a/lib/libc/gen/nlist_elf32.c Wed Jun 01 05:19:21 2005 +0000
+++ b/lib/libc/gen/nlist_elf32.c Wed Jun 01 05:24:54 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_elf32.c,v 1.26 2004/12/28 00:08:08 thorpej Exp $ */
+/* $NetBSD: nlist_elf32.c,v 1.27 2005/06/01 05:24:54 lukem Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou
@@ -129,7 +129,7 @@
ELFDEFNNAME(MACHDEP_ID_CASES)
default:
- BADUNMAP;
+ BAD;
}
if (S_ISCHR(st.st_mode)) {
Home |
Main Index |
Thread Index |
Old Index