Commit 9433a0bf authored by Dan Williams's avatar Dan Williams

libnm-util: fix an error noticed by coverity

parent dacee148
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment