Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff: --indent-heuristic is no longer experimental
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index fa77b00492688c67f0cff4d7f1ac54a1868403d4..8406a8324ee281f55f59afbe1406ec1d91c0ca0c 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-2978,7
+2978,7
@@
static void prep_temp_blob(const char *path, struct diff_tempfile *temp,
blob = buf.buf;
size = buf.len;
}
- if (write_in_full(fd, blob, size)
!= size
)
+ if (write_in_full(fd, blob, size)
< 0
)
die_errno("unable to write temp-file");
close_tempfile(&temp->tempfile);
temp->name = get_tempfile_path(&temp->tempfile);