]> git.cworth.org Git - apitrace/commit
trim: Fix early-bailout bug when accepting both --calls and --frames
authorCarl Worth <cworth@cworth.org>
Mon, 11 Mar 2013 22:49:17 +0000 (15:49 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Apr 2013 21:07:08 +0000 (14:07 -0700)
commit18198bc20331e48f45fc0c36cb3f256a58e24e4b
tree05947e9ba4729aae4b97a739b2f1fafea45d6a90
parent896811606399ebc083ff6304b7f629a93830ba0d
trim: Fix early-bailout bug when accepting both --calls and --frames

The trim code was inappropriately bailing once either list was
exhausted, before also exhausting the user's other requested list.

This fixes the traces/trim-frames-and-calls test recently added to the
apitrace-tests repository.

Thanks to Eric Anholt for reporting this bug.
cli/cli_trim.cpp