summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorPer Andersson <per.andersson3@sonyericsson.com>2011-02-21 09:55:42 +0100
committerJohan Redestig <johan.redestig@sonyericsson.com>2011-02-21 09:55:42 +0100
commit3d865240e776374ced4ea50e6cb7f8ac92a32640 (patch)
tree868e81c46940ff9ebf66059e4b1c6ee59b43cadc /tools/aidl/generate_java.cpp
parent7118bdec523568842e70555e353951df9f2596fd (diff)
Adding a sanity test in the while loop in readHistory()
Adding a sanity test in the while loop in readHistory() which is useful in case the file read (batterystats.bin), is corrupt. The file can get corrupt (missing end of file marker -1) if writeHistory fails for some reason. Without this change readHistory will continue looping untill an OutOfMemory is thrown. Change-Id: I3418d258e7cb99aa2f9d934c9449a19806499ce4
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions