trace: handle NULL argument in trace_disable()
commitc81539b5f6f608ec48358ca6a35f7323e96432e1
authorJeff King <peff@peff.net>
Wed, 3 Aug 2016 22:56:57 +0000 (3 18:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Aug 2016 20:33:27 +0000 (4 13:33 -0700)
tree6ef4b02d1f0c984d7f84796826dca4eb856ebf8b
parent80460f513ebd7851953f5402dd9744236128b240
trace: handle NULL argument in trace_disable()

All of the trace functions treat a NULL key as a synonym for
the default GIT_TRACE key. Except for trace_disable(), which
will segfault.

Fortunately, this can't cause any bugs, as the function has
no callers. But rather than drop it, let's fix the bug, as I
plan to add a caller.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace.c