mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Use empty instead of length
PiperOrigin-RevId: 566219114 Change-Id: I123e3cb8253d092b5d2d9c8e2a85cf5348c64a58
This commit is contained in:
parent
f5830c93cd
commit
37b3a51ca6
|
@ -196,7 +196,7 @@ absl::Status AllowedHosts::AllowIPv4(const std::string& ip,
|
|||
in_addr addr{};
|
||||
in_addr m{};
|
||||
|
||||
if (mask.length()) {
|
||||
if (!mask.empty()) {
|
||||
SAPI_RETURN_IF_ERROR(IPStringToAddr(mask, AF_INET, &m));
|
||||
|
||||
if (!IsIPv4MaskCorrect(m.s_addr)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user