author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 14 Feb 2008 06:34:34 +0000 (01:34 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Feb 2008 04:11:51 +0000 (20:11 -0800) | ||
commit | e8b32e061006d1a62e464e7c2a5385ddd0cb4290 | |
tree | 53224018d84bf52ebe617d4d15647b1b0978299b | tree | snapshot |
parent | df93e33c8bc8c79751a45d8005c6a92b18d4ba6d | commit | diff |
fast-import: check return value from unpack_entry()
If the tree object we have asked for is deltafied in the packfile and
the delta did not apply correctly or was not able to be decompressed
from the packfile then we can get back NULL instead of the tree data.
This is (part of) the reason why read_sha1_file() can return NULL, so
we need to also handle it the same way.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If the tree object we have asked for is deltafied in the packfile and
the delta did not apply correctly or was not able to be decompressed
from the packfile then we can get back NULL instead of the tree data.
This is (part of) the reason why read_sha1_file() can return NULL, so
we need to also handle it the same way.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c | diff | blob | history |