From c8e82b4a29bc601af1336898108337a8fa4bc355 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 25 Mar 2006 21:03:32 +0000 Subject: * sysdeps/sparc/sparc32/bits/atomic.h (__v9_compare_and_exchange_val_32_acq): Add "memory" clobber. * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__arch_compare_and_exchange_val_32_acq, atomic_exchange_acq): Likewise. * sysdeps/sparc/sparc64/bits/atomic.h (__arch_compare_and_exchange_val_32_acq, __arch_compare_and_exchange_val_64_acq, atomic_exchange_acq): Likewise. 2006-03-24 Jakub Jelinek * nis/nss_nisplus/nisplus-proto.c (_nss_create_tablename): Check the return value of malloc rather than the static var again. * nis/nss_nisplus/nisplus-grp.c (_nss_create_tablename): Likewise. * nis/nss_nisplus/nisplus-network.c (_nss_create_tablename): Likewise. * nis/nss_nisplus/nisplus-ethers.c (_nss_create_tablename): Likewise. * nis/nss_nisplus/nisplus-rpc.c (_nss_create_tablename): Likewise. * nis/nss_nisplus/nisplus-service.c (_nss_create_tablename): Likewise. * nis/nss_nisplus/nisplus-hosts.c (_nss_create_tablename): Likewise. * nis/nss_nisplus/nisplus-alias.c (_nss_create_tablename): Likewise. * nis/nss_nisplus/nisplus-pwd.c (_nss_pwd_create_tablename): Likewise. --- nis/nss_nisplus/nisplus-ethers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nis/nss_nisplus/nisplus-ethers.c') diff --git a/nis/nss_nisplus/nisplus-ethers.c b/nis/nss_nisplus/nisplus-ethers.c index fcc550e743..ca0a9e2481 100644 --- a/nis/nss_nisplus/nisplus-ethers.c +++ b/nis/nss_nisplus/nisplus-ethers.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997,1998,2000-2003,2005 Free Software Foundation, Inc. +/* Copyright (C) 1997,1998,2000-2003,2005,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk , 1997. @@ -94,7 +94,7 @@ _nss_create_tablename (int *errnop) static const char prefix[] = "ethers.org_dir."; char *p = malloc (sizeof (prefix) + local_dir_len); - if (tablename_val == NULL) + if (p == NULL) { *errnop = errno; return NSS_STATUS_TRYAGAIN; -- cgit v1.2.3-70-g09d2