Merge branch 'sn/null-pointer-arith-in-mark-tree-uninteresting'
commit782ca8c44e176e8a00c2c824a98dbe6274167639
authorJunio C Hamano <gitster@pobox.com>
Fri, 11 Dec 2015 18:41:01 +0000 (11 10:41 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Dec 2015 18:41:01 +0000 (11 10:41 -0800)
treee584f823e702c36b82f207d4a726cfb192903b8b
parentfa41b052538840dbadbd14ca45da837a1965ae0f
parenta2678df335f3404bc5d96683fa36b8cfab7946b0
Merge branch 'sn/null-pointer-arith-in-mark-tree-uninteresting'

mark_tree_uninteresting() has code to handle the case where it gets
passed a NULL pointer in its 'tree' parameter, but the function had
'object = &tree->object' assignment before checking if tree is
NULL.  This gives a compiler an excuse to declare that tree will
never be NULL and apply a wrong optimization.  Avoid it.

* sn/null-pointer-arith-in-mark-tree-uninteresting:
  revision.c: fix possible null pointer arithmetic
revision.c