fix minor asan bug; $(<nosuchfile) is no longer a fatal error with errexit enabled; fixes for vi t/T motion commands

This commit is contained in:
Chet Ramey
2023-04-05 16:07:04 -04:00
parent 877ff72675
commit ec9447ce93
6 changed files with 56 additions and 5 deletions
+1 -1
View File
@@ -756,7 +756,7 @@ open_redir_file (REDIRECT *r, char **fnp)
fd = open(fn, O_RDONLY);
if (fd < 0)
{
file_error (fn);
internal_error ("%s: %s", fn, strerror (errno));
free (fn);
if (fnp)
*fnp = 0;