mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 21:38:06 +02:00
device: fix a wrong comparison
'i <= G_MAXINT' is always true.
This commit is contained in:
parent
9e43821e17
commit
e3b9606b24
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue