diff options
-rw-r--r-- | clients/tui/nm-editor-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/tui/nm-editor-utils.c b/clients/tui/nm-editor-utils.c index a98278bc09..f936c95943 100644 --- a/clients/tui/nm-editor-utils.c +++ b/clients/tui/nm-editor-utils.c @@ -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; |