summaryrefslogtreecommitdiff
path: root/libpagemap
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-07-12 22:30:14 -0700
committerColin Cross <ccross@android.com>2011-07-12 22:30:14 -0700
commiteff788820689e7c2bfd456934e8132a381b31235 (patch)
treea17f7ae9c2a66ccc8397b8401bc8cad30502cf8d /libpagemap
parentdba332410528d11474ae9f878b6984755d55e299 (diff)
downloadextras-eff788820689e7c2bfd456934e8132a381b31235.tar.gz
Detect an error case and prevent printing an uninitialized variable
pm_process_usage can return an error, and leave procs[i]->usage unitialized. Detect the error case and print a warning. Also make the initialization of procs[i]->usage to 0 unconditional, so nothing will be printed in the final procrank stats when an error is detected. Change-Id: I03f90ae6a5ebb201b6e9e43593cec225e1a8ded0
Diffstat (limited to 'libpagemap')
0 files changed, 0 insertions, 0 deletions