summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-07-25 02:20:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-07-25 02:20:59 (GMT)
commit0c544a22f9297b305949bd77f15183aa8fffd8fc (patch)
treee27dd3a877d391d79031596138d513c0eb6674a1 /builtin/commit.c
parent1762224ddb599ab14ca26cedafec39dee9b92fe5 (diff)
parentd3c9cf32ca3b088fda54e7be311860f1f06fb11e (diff)
downloadgit-0c544a22f9297b305949bd77f15183aa8fffd8fc.zip
git-0c544a22f9297b305949bd77f15183aa8fffd8fc.tar.gz
git-0c544a22f9297b305949bd77f15183aa8fffd8fc.tar.bz2
Merge branch 'sb/misc-fixes'
Assorted code cleanups and a minor fix. * sb/misc-fixes: diff.c: Do not initialize a variable, which gets reassigned anyway. commit: Fix a memory leak in determine_author_info daemon.c:handle: Remove unneeded check for null pointer.
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index 65cf2a7..003bd7d 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -534,7 +534,6 @@ static void determine_author_info(struct strbuf *author_ident)
(lb - strlen(" ") -
(a + strlen("\nauthor "))));
email = xmemdupz(lb + strlen("<"), rb - (lb + strlen("<")));
- date = xmemdupz(rb + strlen("> "), eol - (rb + strlen("> ")));
len = eol - (rb + strlen("> "));
date = xmalloc(len + 2);
*date = '@';