Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit: use xstrdup() in get_merge_parent()
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 2a90e37519f0b6e9de6e30ed57afe91822441ca3..dd955e3e299a0b5e04db13ad20a10c3985b56093 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-1589,7
+1589,7
@@
struct commit *get_merge_parent(const char *name)
struct merge_remote_desc *desc;
desc = xmalloc(sizeof(*desc));
desc->obj = obj;
- desc->name = strdup(name);
+ desc->name =
x
strdup(name);
commit->util = desc;
}
return commit;