diff options
author | Jeff King <peff@peff.net> | 2013-10-24 04:53:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-24 15:43:50 -0700 |
commit | 683ff884cce955cc331929d857fac9d6bd69f46a (patch) | |
tree | e2008ae24bd2672c58d9d1410e95552d6f74e05b /builtin/check-attr.c | |
parent | assume parse_commit checks for NULL commit (diff) | |
download | tgif-683ff884cce955cc331929d857fac9d6bd69f46a.tar.xz |
use parse_commit_or_die instead of segfaulting
Some unchecked calls to parse_commit should obviously die on
error, because their next step is to start looking at the
parsed fields, which will cause a segfault. These are
obvious candidates for parse_commit_or_die, which will be a
strict improvement in behavior.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/check-attr.c')
0 files changed, 0 insertions, 0 deletions