Skip to content

Commit

Permalink
lib/netinfo: fix a LGTM alert
Browse files Browse the repository at this point in the history
Fix the alert:

    Comparison is always false because ... = ... >= 0.

detected by the LGTM static code analyzer.

Signed-off-by: Davide Madrisan <[email protected]>
  • Loading branch information
madrisan committed Sep 10, 2021
1 parent a48c48e commit a618cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netinfo-private.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ get_netinfo_snapshot (unsigned int options, const regex_t *if_regex)
while (!msg_done)
{
/* parse reply */
unsigned int len;
ssize_t len;
struct nlmsghdr *h;
struct msghdr rtnl_reply;
struct iovec io_reply;
Expand Down

0 comments on commit a618cba

Please sign in to comment.