diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-10-04 09:37:26 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-10-06 10:03:48 +0200 |
commit | e3b9606b24513c5cd386aac013625f75c1a392e9 (patch) | |
tree | 3774807fc5a530bb07ed2cb8ef1b054f30db0a4f /src/devices/nm-device-ethernet-utils.c | |
parent | 9e43821e1741e2800df00f71ced0569629b032ab (diff) | |
download | NetworkManager-e3b9606b24513c5cd386aac013625f75c1a392e9.tar.gz |
device: fix a wrong comparison
'i <= G_MAXINT' is always true.
Diffstat (limited to 'src/devices/nm-device-ethernet-utils.c')
-rw-r--r-- | src/devices/nm-device-ethernet-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device-ethernet-utils.c b/src/devices/nm-device-ethernet-utils.c index 8bdb19917a..b18eadfa9b 100644 --- a/src/devices/nm-device-ethernet-utils.c +++ b/src/devices/nm-device-ethernet-utils.c @@ -29,7 +29,7 @@ nm_device_ethernet_utils_get_default_wired_name (GHashTable *existing_ids) int i; /* Find the next available unique connection name */ - for (i = 1; i <= G_MAXINT; i++) { + for (i = 1; i < G_MAXINT; i++) { temp = g_strdup_printf (_("Wired connection %d"), i); if ( !existing_ids || !g_hash_table_contains (existing_ids, temp)) |