Merge branch 'maint'
* maint: cat-file: Fix an gcc -Wuninitialized warning fast-import: Fix an gcc -Wuninitialized warning
This commit is contained in:
@ -193,7 +193,7 @@ static int batch_one_object(const char *obj_name, int print_contents)
|
|||||||
unsigned char sha1[20];
|
unsigned char sha1[20];
|
||||||
enum object_type type = 0;
|
enum object_type type = 0;
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
void *contents;
|
void *contents = NULL;
|
||||||
|
|
||||||
if (!obj_name)
|
if (!obj_name)
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -2465,6 +2465,7 @@ static void note_change_n(struct branch *b, unsigned char *old_fanout)
|
|||||||
hashcpy(sha1, oe->idx.sha1);
|
hashcpy(sha1, oe->idx.sha1);
|
||||||
} else if (!prefixcmp(p, "inline ")) {
|
} else if (!prefixcmp(p, "inline ")) {
|
||||||
inline_data = 1;
|
inline_data = 1;
|
||||||
|
oe = NULL; /* not used with inline_data, but makes gcc happy */
|
||||||
p += strlen("inline"); /* advance to space */
|
p += strlen("inline"); /* advance to space */
|
||||||
} else {
|
} else {
|
||||||
if (get_sha1_hex(p, sha1))
|
if (get_sha1_hex(p, sha1))
|
||||||
|
Reference in New Issue
Block a user