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
/
blame.c
diff --git
a/builtin/blame.c
b/builtin/blame.c
index 07506a3e457d1540acb7700e4677d715d6842735..34445d789420eddd53b06ba274445a65026f898d 100644
(file)
--- a/
builtin/blame.c
+++ b/
builtin/blame.c
@@
-2071,7
+2071,7
@@
static int prepare_lines(struct scoreboard *sb)
*/
static int read_ancestry(const char *graft_file)
{
- FILE *fp = fopen(graft_file, "r");
+ FILE *fp = fopen
_or_warn
(graft_file, "r");
struct strbuf buf = STRBUF_INIT;
if (!fp)
return -1;