Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen fix typo in _nis_grscan(). "if (data); free(dat...



details:   https://anonhg.NetBSD.org/src/rev/d72928acb616
branches:  trunk
changeset: 500742:d72928acb616
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Dec 17 22:09:12 2000 +0000

description:
fix typo in _nis_grscan(). "if (data); free(data);" -> "if (data) free(data);"
noted by Jacques Vidrine <nectar%FreeBSD.org@localhost>

diffstat:

 lib/libc/gen/getgrent.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 161c3d8736b7 -r d72928acb616 lib/libc/gen/getgrent.c
--- a/lib/libc/gen/getgrent.c   Sun Dec 17 21:54:20 2000 +0000
+++ b/lib/libc/gen/getgrent.c   Sun Dec 17 22:09:12 2000 +0000
@@ -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
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)getgrent.c 8.2 (Berkeley) 3/21/94";
 #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 /* LIBC_SCCS and not lint */
 
@@ -405,7 +405,7 @@
                        if (yp_first(__ypdomain, "group.byname",
                                        &__ypcurrent, &__ypcurrentlen,
                                        &data, &datalen)) {
-                               if (data);
+                               if (data)
                                        free(data);
                                return NS_UNAVAIL;
                        }



Home | Main Index | Thread Index | Old Index