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.
This commit is contained in:
@ -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 = '@';
|
||||
|
Reference in New Issue
Block a user