Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
wrapper.c: add and use fopen_or_warn()
[gitweb.git]
/
builtin
/
fast-export.c
diff --git
a/builtin/fast-export.c
b/builtin/fast-export.c
index e0220630d00cf2c069ce1a43e9511df57685acd2..128b99e6daa46aa1bac48f52a3d5b226f274eb44 100644
(file)
--- a/
builtin/fast-export.c
+++ b/
builtin/fast-export.c
@@
-905,9
+905,7
@@
static void export_marks(char *file)
static void import_marks(char *input_file)
{
char line[512];
- FILE *f = fopen(input_file, "r");
- if (!f)
- die_errno("cannot read '%s'", input_file);
+ FILE *f = xfopen(input_file, "r");
while (fgets(line, sizeof(line), f)) {
uint32_t mark;