Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fetch.fsckobjects: verify downloaded objects
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 9038057a76bcda8eeab42ba133cae0bf5d1e6571..989dbc54cbb31c095cc45fb5bb74f62077f1c635 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-2893,6
+2893,8
@@
int diff_opt_parse(struct diff_options *options, const char **av, int ac)
;
else if (!prefixcmp(arg, "--output=")) {
options->file = fopen(arg + strlen("--output="), "w");
+ if (!options->file)
+ die_errno("Could not open '%s'", arg + strlen("--output="));
options->close_file = 1;
} else
return 0;