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:
Dan Winship 2014-11-11 16:41:22 -05:00
parent 900763ce0f
commit b27f87c714

View file

@ -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;