commit | f4f22b22d2bf40380ff75c3f2e75e70e6bcc27bf | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Thu Nov 18 10:50:36 2021 -0800 |
committer | Maciej Żenczykowski <maze@google.com> | Thu Nov 18 12:59:38 2021 -0800 |
tree | 2ae5e4df978ac16f0f82964e55dee0e620182fa3 | |
parent | 5edb1b68d00a04d33f6e8641906996198ffec8ef [diff] |
use str.empty() to check for empty string instead of !str[0] !str[0] is technically speaking reaching past the end of the 0-byte empty string, though there should normally be an extra 0 byte added to facilitate .c_str() Bug: 206703697 Test: TreeHugger, atest netd_unit_test Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I88ddae1b00ff020bd833d057468f729fb530216d