Module Name: src Committed By: dholland Date: Sun Aug 9 00:51:13 UTC 2020
Modified Files: src/bin/csh: csh.c Log Message: Clarify some comments. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/bin/csh/csh.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/csh/csh.c diff -u src/bin/csh/csh.c:1.51 src/bin/csh/csh.c:1.52 --- src/bin/csh/csh.c:1.51 Sun Aug 9 00:22:53 2020 +++ src/bin/csh/csh.c Sun Aug 9 00:51:12 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: csh.c,v 1.51 2020/08/09 00:22:53 dholland Exp $ */ +/* $NetBSD: csh.c,v 1.52 2020/08/09 00:51:12 dholland Exp $ */ /*- * Copyright (c) 1980, 1991, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19 #if 0 static char sccsid[] = "@(#)csh.c 8.2 (Berkeley) 10/12/93"; #else -__RCSID("$NetBSD: csh.c,v 1.51 2020/08/09 00:22:53 dholland Exp $"); +__RCSID("$NetBSD: csh.c,v 1.52 2020/08/09 00:51:12 dholland Exp $"); #endif #endif /* not lint */ @@ -845,13 +845,12 @@ srcunit(int unit, int onlyown, int hflg) int i; /* We made it to the new state... free up its storage */ - /* This code could get run twice but free doesn't care */ - /* XXX yes it does */ for (i = 0; i < fblocks; i++) free(fbuf[i]); free(fbuf); /* Reset input arena */ + /* (note that this clears fbuf and fblocks) */ (void)memcpy(&B, &saveB, sizeof(B)); (void)close(SHIN), SHIN = oSHIN;