diff options
author | Fabien Thomas <fabient@FreeBSD.org> | 2010-04-14 21:53:27 +0000 |
---|---|---|
committer | Fabien Thomas <fabient@FreeBSD.org> | 2010-04-14 21:53:27 +0000 |
commit | 410c7662749344645598007a28d70d283541347d (patch) | |
tree | 0f2ef86dfd8880d12e16350481d03b612494a973 /usr.sbin/pmcstat/pmcpl_callgraph.c | |
parent | f6b93040fd95c76758b371e160dbf6d996b14336 (diff) | |
download | src-test2-410c7662749344645598007a28d70d283541347d.tar.gz src-test2-410c7662749344645598007a28d70d283541347d.zip |
Notes
Diffstat (limited to 'usr.sbin/pmcstat/pmcpl_callgraph.c')
-rw-r--r-- | usr.sbin/pmcstat/pmcpl_callgraph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_callgraph.c b/usr.sbin/pmcstat/pmcpl_callgraph.c index 53d342bfdc15..d948b77f43b6 100644 --- a/usr.sbin/pmcstat/pmcpl_callgraph.c +++ b/usr.sbin/pmcstat/pmcpl_callgraph.c @@ -581,6 +581,8 @@ pmcpl_cg_topdisplay(void) struct pmcstat_pmcrecord *pmcr; pmcr = pmcstat_pmcindex_to_pmcr(pmcstat_pmcinfilter); + if (!pmcr) + err(EX_SOFTWARE, "ERROR: invalid pmcindex"); /* * We pull out all callgraph nodes in the top-level hash table |