commit | ddd000b91fc22fb1e85b5687545e231231351fd1 | [log] [tgz] |
---|---|---|
author | Carl Shapiro <cshapiro@google.com> | Tue Feb 02 13:47:59 2010 -0800 |
committer | Carl Shapiro <cshapiro@google.com> | Tue Feb 02 15:01:23 2010 -0800 |
tree | 0997929ec7f9903eb34474fa729f550e97fc2e14 | |
parent | 601fa0418e1f0835fd5ad7b06d3a6d2d631d667d [diff] |
Fix a long standing bug within dvmHeapSourceGetObjectBitmaps. All callers of this function assign the return value to an unsigned value even though this function returns -1 in the error case. This causes the error checks to succeed in cases where it should otherwise fail. Rather than return -1 on error, I have elected to return 0 instead which just happens to be compatible with all current uses.