trace: handle NULL argument in trace_disable()
authorJeff King <redacted>
Wed, 3 Aug 2016 22:56:57 +0000 (18:56 -0400)
committerJunio C Hamano <redacted>
Thu, 4 Aug 2016 20:33:27 +0000 (13:33 -0700)
commitc81539b5f6f608ec48358ca6a35f7323e96432e1
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
trace.c
git clone https://git.99rst.org/PROJECT