fix typo in _nis_grscan(). "if (data); free(data);" -> "if (data) free(data);"

noted by Jacques Vidrine <nectar@FreeBSD.org>
This commit is contained in:
lukem 2000-12-17 22:09:12 +00:00
parent 065dbd3604
commit 741ea8dc94
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: getgrent.c,v 1.39 2000/01/22 22:19:10 mycroft Exp $ */ /* $NetBSD: getgrent.c,v 1.40 2000/12/17 22:09:12 lukem Exp $ */
/* /*
* Copyright (c) 1989, 1993 * Copyright (c) 1989, 1993
@ -39,7 +39,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94"; static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94";
#else #else
__RCSID("$NetBSD: getgrent.c,v 1.39 2000/01/22 22:19:10 mycroft Exp $"); __RCSID("$NetBSD: getgrent.c,v 1.40 2000/12/17 22:09:12 lukem Exp $");
#endif #endif
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
@ -405,7 +405,7 @@ _nis_grscan(rv, cb_data, ap)
if (yp_first(__ypdomain, "group.byname", if (yp_first(__ypdomain, "group.byname",
&__ypcurrent, &__ypcurrentlen, &__ypcurrent, &__ypcurrentlen,
&data, &datalen)) { &data, &datalen)) {
if (data); if (data)
free(data); free(data);
return NS_UNAVAIL; return NS_UNAVAIL;
} }