Commit 3e5b0ea5 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

files: prevent an infinite loop when reading from standard input fails

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -2605,9 +2605,9 @@ int main(int argc, char **argv)
/* If the filename is a dash, read from standard input; otherwise,
* open the file; skip positioning the cursor if either failed. */
if (strcmp(argv[optind], "-") == 0) {
optind++;
if (!scoop_stdin())
continue;
optind++;
} else if (!open_buffer(argv[optind++], FALSE))
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment