pretty: handle broken commit headers gracefully
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Wed, 17 Apr 2013 18:33:35 +0000 (20:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Apr 2013 21:50:36 +0000 (14:50 -0700)
Centralize the parsing of the date and time zone strings in the new
helper function show_ident_date() and make sure it checks the pointers
provided by split_ident_line() for NULL before use.

Reported-by: Ivan Lyapunov <dront78@gmail.com>
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found