commit | 266bec303c25dfebc7043643ee9ef0c8fd9aa03b | [log] [tgz] |
---|---|---|
author | Mike Ma <yanmin@google.com> | Wed Feb 26 12:39:57 2020 -0800 |
committer | Mike Ma <yanmin@google.com> | Wed Feb 26 12:39:57 2020 -0800 |
tree | 9e96eda4a71eda6f79e48740fff2ccb6c5163ade | |
parent | d506a78e94594be701b2a061cb48b5e2f5cf3908 [diff] |
Handle EOF explicitly in incident_helper getLine returns -1 when it reaches EOF, and currently incident_helper does not differentiate between EOF and an actual error when calling getLinefrom file. So incident_helper throws an error when it reaches EOF, and this is not good. This change separates these two cases. Bug: 149895022 Bug: 150145113 Test: incident_helper_test Change-Id: Ic5e67f8f9e55719c17d624718b730981c4249da1