Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common Add assert
details: https://anonhg.NetBSD.org/src/rev/20a8c4eb9c6e
branches: trunk
changeset: 336214:20a8c4eb9c6e
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Feb 18 03:08:38 2015 +0000
description:
Add assert
diffstat:
external/cddl/osnet/dist/lib/libdtrace/common/dt_aggregate.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r db15e9e08dec -r 20a8c4eb9c6e external/cddl/osnet/dist/lib/libdtrace/common/dt_aggregate.c
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_aggregate.c Wed Feb 18 03:07:56 2015 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_aggregate.c Wed Feb 18 03:08:38 2015 +0000
@@ -1074,6 +1074,7 @@
if (dt_status(dtp, i) == -1)
continue;
+ assert(agp->dtat_ncpus < agp->dtat_ncpu);
agp->dtat_cpus[agp->dtat_ncpus++] = i;
}
Home |
Main Index |
Thread Index |
Old Index