projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plug leak in Daniel's read-tree.
[git.git]
/
diffcore.h
diff --git
a/diffcore.h
b/diffcore.h
index
ac159d7
..
633d1ae
100644
(file)
--- a/
diffcore.h
+++ b/
diffcore.h
@@
-33,7
+33,7
@@
struct diff_filespec {
* if false, use the name and read from
* the filesystem.
*/
* if false, use the name and read from
* the filesystem.
*/
-#define DIFF_FILE_VALID(spec) ((
spec) && (
(spec)->mode) != 0)
+#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
unsigned should_free : 1; /* data should be free()'ed */
unsigned should_munmap : 1; /* data should be munmap()'ed */
};
unsigned should_free : 1; /* data should be free()'ed */
unsigned should_munmap : 1; /* data should be munmap()'ed */
};
@@
-43,7
+43,7
@@
extern void fill_filespec(struct diff_filespec *, const unsigned char *,
unsigned short);
extern int diff_populate_filespec(struct diff_filespec *, int);
unsigned short);
extern int diff_populate_filespec(struct diff_filespec *, int);
-extern void diff_free_filespec
_data
(struct diff_filespec *);
+extern void diff_free_filespec(struct diff_filespec *);
struct diff_filepair {
struct diff_filespec *one;
struct diff_filepair {
struct diff_filespec *one;