diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-22 03:58:39 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-22 03:58:39 +0000 |
commit | 54eb84d0c769dbd974b21ffd9d41d48aff203a15 (patch) | |
tree | 62e967244da950de59f2ebb8ed4b9958136bba71 /nis/nis_creategroup.c | |
parent | e88e03a0451bba8f20faadcd5f214810770824f1 (diff) | |
download | glibc-54eb84d0c769dbd974b21ffd9d41d48aff203a15.zip glibc-54eb84d0c769dbd974b21ffd9d41d48aff203a15.tar.gz glibc-54eb84d0c769dbd974b21ffd9d41d48aff203a15.tar.bz2 |
Update.
* nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
* nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
instead of malloc.
* nis/nis_subr.c: Use __builtin_expect.
* nis/ypclnt.c: Likewise.
* nis/nis_getservlist.c: Likewise.
* nis/nis_creategroup.c: Likewise.
Diffstat (limited to 'nis/nis_creategroup.c')
-rw-r--r-- | nis/nis_creategroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nis_creategroup.c b/nis/nis_creategroup.c index 6d4af65..9168655 100644 --- a/nis/nis_creategroup.c +++ b/nis/nis_creategroup.c @@ -1,4 +1,4 @@ -/* Copyright (c) 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997. @@ -47,7 +47,7 @@ nis_creategroup (const_nis_name group, unsigned int flags) return NIS_BADNAME; obj = malloc (sizeof (nis_object)); - if (obj == NULL) + if (__builtin_expect (obj == NULL, 0)) return NIS_NOMEMORY; obj->zo_oid.ctime = obj->zo_oid.mtime = time (NULL); |