revision.c: fix possible null pointer arithmetic
commita2678df335f3404bc5d96683fa36b8cfab7946b0
authorStefan Naewe <stefan.naewe@gmail.com>
Sat, 5 Dec 2015 15:27:24 +0000 (5 16:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Dec 2015 20:32:02 +0000 (7 12:32 -0800)
treebc5ec704370e60f8db15ad3f1dd409906bf5e7e9
parent24358560c3c0ab51c9ef8178d99f46711716f6c0
revision.c: fix possible null pointer arithmetic

mark_tree_uninteresting() dereferences a tree pointer before
checking if the pointer is valid. Fix that by doing the check first.

Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c