summaryrefslogtreecommitdiff
path: root/sha1-lookup.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2013-04-25 21:40:25 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-25 15:02:51 -0700
commit30e77bcb5008d1947c721fb084e21eeaa591c45e (patch)
tree5e4cf4c72115b69ac0e96cfa2b7a6f763c41c50d /sha1-lookup.c
parentblame: handle broken commit headers gracefully (diff)
downloadtgif-30e77bcb5008d1947c721fb084e21eeaa591c45e.tar.xz
pretty: simplify input line length calculation in pp_user_info()
Instead of searching for LF and NUL with two strchr() calls use a single strchrnul() call. We don't need to check if the returned pointer is NULL because either we'll find the NUL at the end of line, or the caller forgot to NUL-terminate the string and we'll overrun the buffer in any case. Also we don't need to pass LF or NUL to split_ident_line() as it ignores it anyway. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-lookup.c')
0 files changed, 0 insertions, 0 deletions