to prevent an infinite loop if the first file in the directory is
a backup file.
+2000-04-06 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * top.c (filename_completer): Set subsequent_name to 1 early on,
+ to prevent an infinite loop if the first file in the directory is
+ a backup file (whose name ends in a `~').
+
2000-04-05 Jim Blandy <jimb@redhat.com>
* solib.c (update_solib_list): New function.
return_val[return_val_used++] = p;
break;
}
+ /* We need to set subsequent_name to a non-zero value before the
+ continue line below, because otherwise, if the first file seen
+ by GDB is a backup file whose name ends in a `~', we will loop
+ indefinitely. */
+ subsequent_name = 1;
/* Like emacs, don't complete on old versions. Especially useful
in the "source" command. */
if (p[strlen (p) - 1] == '~')
free (p);
}
}
- subsequent_name = 1;
}
#if 0
/* There is no way to do this just long enough to affect quote inserting