* nis/nis_defaults.c (searchXYX): New functions. Used by both
commit51e5926049360b991d71862e33a97fe1ead4d9a6
authorUlrich Drepper <drepper@redhat.com>
Wed, 10 May 2006 02:55:21 +0000 (10 02:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 10 May 2006 02:55:21 +0000 (10 02:55 +0000)
tree3089a8fec8cd11641d803075a15c7bdb51f4976b
parente7c8359e431ef305fbc61e4b86af6353b4f39879
* nis/nis_defaults.c (searchXYX): New functions.  Used by both

searchgroup and searchowner.  Significantly simplified.
(__nis_default_owner): Remove duplication.  Do not locally copy the
string before duplicating it.
(__nis_default_group): Likewise.

* nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
we must clear the variable before calling __nisfind_server.

* nis/nis_lookup.c (nis_lookup): Always free memory allocated with
nis_getnames.  [Coverity CID 223]

* locale/programs/locfile.c (locfile_read): Use alloca instead of
xmalloc to allocate local repertoire name.  [Coverity CID 222]

* iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
allocate memory for the input to add_bytes.  [Coverity CID 221]

was allocated here.  [Coverity CID 219, 220]
ChangeLog
iconv/iconv_charmap.c
locale/programs/locfile.c
nis/nis_defaults.c
nis/nis_lookup.c