Unidiff1 files changed, 2 insertions, 3 deletions
|
diff --git a/ui-diff.c b/ui-diff.c index b6486f1..0ad9faf 100644 --- a/ ui-diff.c+++ b/ ui-diff.c |
|
@@ -7,7 +7,6 @@ |
7 | */ |
7 | */ |
8 | |
8 | |
9 | #include "cgit.h" |
9 | #include "cgit.h" |
10 | #include "xdiff.h" |
| |
11 | |
10 | |
12 | char *diff_buffer; |
11 | char *diff_buffer; |
13 | int diff_buffer_size; |
12 | int diff_buffer_size; |
@@ -82,13 +81,13 @@ int diff_cb(void *priv_, mmbuffer_t *mb, int nbuf) |
82 | |
81 | |
83 | static int load_mmfile(mmfile_t *file, const unsigned char *sha1) |
82 | static int load_mmfile(mmfile_t *file, const unsigned char *sha1) |
84 | { |
83 | { |
85 | char type[20]; |
84 | enum object_type type; |
86 | |
85 | |
87 | if (is_null_sha1(sha1)) { |
86 | if (is_null_sha1(sha1)) { |
88 | file->ptr = (char *)""; |
87 | file->ptr = (char *)""; |
89 | file->size = 0; |
88 | file->size = 0; |
90 | } else { |
89 | } else { |
91 | file->ptr = read_sha1_file(sha1, type, &file->size); |
90 | file->ptr = read_sha1_file(sha1, &type, &file->size); |
92 | } |
91 | } |
93 | return 1; |
92 | return 1; |
94 | } |
93 | } |
|