Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh initialize just used and prev_job
details: https://anonhg.NetBSD.org/src/rev/ca3a0cb6f23f
branches: trunk
changeset: 358455:ca3a0cb6f23f
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 30 20:42:28 2017 +0000
description:
initialize just used and prev_job
diffstat:
bin/sh/jobs.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 81ce5c90dc01 -r ca3a0cb6f23f bin/sh/jobs.c
--- a/bin/sh/jobs.c Sat Dec 30 17:59:24 2017 +0000
+++ b/bin/sh/jobs.c Sat Dec 30 20:42:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jobs.c,v 1.96 2017/12/30 01:21:25 christos Exp $ */
+/* $NetBSD: jobs.c,v 1.97 2017/12/30 20:42:28 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: jobs.c,v 1.96 2017/12/30 01:21:25 christos Exp $");
+__RCSID("$NetBSD: jobs.c,v 1.97 2017/12/30 20:42:28 christos Exp $");
#endif
#endif /* not lint */
@@ -1053,8 +1053,10 @@
jobtab = jp;
}
jp = jobtab + njobs;
- for (i = 4 ; --i >= 0 ; )
- memset(&jobtab[njobs++], 0, sizeof(*jobtab));
+ for (i = 4 ; --i >= 0 ; njobs++) {
+ jobtab[njobs].used = 0;
+ jobtab[njobs].prev_job = -1;
+ }
INTON;
break;
}
Home |
Main Index |
Thread Index |
Old Index