diff options
author | Matt Kraai | 2000-09-27 02:43:35 +0000 |
---|---|---|
committer | Matt Kraai | 2000-09-27 02:43:35 +0000 |
commit | bbaef66b3f99213f06adf04df6b3e5e61278d75b (patch) | |
tree | 3838db4158e8e05a753fffd6e87cbbc7946425ad /sed.c | |
parent | e0bcce09baff576b1b16b3ffe780b6d91c7710c2 (diff) | |
download | busybox-bbaef66b3f99213f06adf04df6b3e5e61278d75b.zip busybox-bbaef66b3f99213f06adf04df6b3e5e61278d75b.tar.gz |
Consolidate handling of some fopen failures.
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -472,9 +472,7 @@ static void load_cmd_file(char *filename) char *line; char *nextline; - cmdfile = fopen(filename, "r"); - if (cmdfile == NULL) - fatalError(strerror(errno)); + cmdfile = xfopen(filename, "r"); while ((line = get_line_from_file(cmdfile)) != NULL) { /* if a line ends with '\' it needs the next line appended to it */ |