summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-05-19 10:18:59 +0200
committerThomas Haller <thaller@redhat.com>2017-05-19 12:45:45 +0200
commit12c881ad40c4829eb430bd0148fa5dbbdfd0ec01 (patch)
tree5831bd41b99d68eab7b52350383d056da1273209
parentf867f20ab83cedf826507e4f3517b5887678b4d4 (diff)
downloadNetworkManager-12c881ad40c4829eb430bd0148fa5dbbdfd0ec01.tar.gz
libnm: fix device description in fixup_desc_string()
Fixes: b9e9f7616556f693e2642ed433f3289f9c6da452
-rw-r--r--libnm/nm-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-device.c b/libnm/nm-device.c
index 7e8feb1cd5..6c27190783 100644
--- a/libnm/nm-device.c
+++ b/libnm/nm-device.c
@@ -1535,7 +1535,7 @@ fixup_desc_string (const char *desc)
if (nm_utils_strv_find_first ((char **) IGNORED_WORDS,
G_N_ELEMENTS (IGNORED_WORDS),
- p) < 0)
+ p) >= 0)
goto next;
l = strlen (p);