diff --git a/builtin/merge-tree.c b/builtin/merge-tree.c
index fc00d794d641c146023a78d7d8e4143f0fdac302..9b25ddc9794efe489ee9ec9fd3203ffa997f03f7 100644 (file)
--- a/builtin/merge-tree.c
+++ b/builtin/merge-tree.c
{
enum object_type type;
struct blob *base, *our, *their;
{
enum object_type type;
struct blob *base, *our, *their;
+ const char *path = entry->path;
if (!entry->stage)
return read_sha1_file(entry->blob->object.sha1, &type, size);
if (!entry->stage)
return read_sha1_file(entry->blob->object.sha1, &type, size);
their = NULL;
if (entry)
their = entry->blob;
their = NULL;
if (entry)
their = entry->blob;
- return merge_file(entry->path, base, our, their, size);
+ return merge_file(path, base, our, their, size);
}
static void *origin(struct merge_list *entry, unsigned long *size)
}
static void *origin(struct merge_list *entry, unsigned long *size)