summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-12-15 14:24:59 -0800
committer Siarhei Vishniakou <svv@google.com> 2023-12-15 15:14:43 -0800
commit6742ee98ac9b9891888e7fc4c73b6257cc70734a (patch)
tree70e3f7a8773e19699560a6899da356b7da3aa8e2 /services/surfaceflinger/RegionSamplingThread.cpp
parentb507b71cc52f9203657f221808eef04d58dd6398 (diff)
Correctly handle empty vector when printing
before this CL, an empty vector passed to 'dumpVector' would cause a crash (in the good case) and undefined behaviour otherwise. In this CL, fix this function. Bug: 211379801 Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Change-Id: I93f4defb947f41d68f0ec22bd35b6c069fbc15e4
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions