aboutsummaryrefslogtreecommitdiff
path: root/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sed.c')
-rw-r--r--sed.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sed.c b/sed.c
index cb3f1bbf1..75435f67a 100644
--- a/sed.c
+++ b/sed.c
@@ -472,9 +472,7 @@ static void load_cmd_file(char *filename)
472 char *line; 472 char *line;
473 char *nextline; 473 char *nextline;
474 474
475 cmdfile = fopen(filename, "r"); 475 cmdfile = xfopen(filename, "r");
476 if (cmdfile == NULL)
477 fatalError(strerror(errno));
478 476
479 while ((line = get_line_from_file(cmdfile)) != NULL) { 477 while ((line = get_line_from_file(cmdfile)) != NULL) {
480 /* if a line ends with '\' it needs the next line appended to it */ 478 /* if a line ends with '\' it needs the next line appended to it */