mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 14:40:08 +01:00
tui: fix generated new connection names
Now that "i" is being used in the first loop over all connections, we need to reset it before using it again in the loop to find an available name.
This commit is contained in:
parent
900763ce0f
commit
b27f87c714
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ get_available_connection_name (const char *format,
|
|||
}
|
||||
|
||||
/* Find the next available unique connection name */
|
||||
while (!cname && (i++ < 10000)) {
|
||||
for (i = 1; !cname && i < 10000; i++) {
|
||||
char *temp;
|
||||
gboolean found = FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue