mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-06 08:18:23 +02:00
libnm-util: fix an error noticed by coverity
This commit is contained in:
parent
dacee1485a
commit
9433a0bfe0
1 changed files with 1 additions and 1 deletions
|
|
@ -2193,7 +2193,7 @@ nm_utils_hwaddr_valid (const char *asc)
|
|||
guint8 buf[NM_UTILS_HWADDR_LEN_MAX];
|
||||
gsize in_len, out_len;
|
||||
|
||||
if (!asc && !*asc)
|
||||
if (!asc || !*asc)
|
||||
return FALSE;
|
||||
in_len = strlen (asc);
|
||||
if ((in_len + 1) % 3 != 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue