Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 84b59d9f authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

SockDiag - fix a deadcode warning



Assignments in if statements are ugly anyway...

Fixes:
  system/netd/server/SockDiag.cpp:146:10: error: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret' [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
    if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) {
         ^

Test: builds
Bug: 155351989
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: Ia5ad0ef3176b90915cba6c8a1b8626ead53d67f6
parent 28487f9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment