summaryrefslogtreecommitdiff
path: root/t/helper/test-strcmp-offset.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-07-08 12:51:01 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-10 09:16:37 -0700
commit5e8d2729ae64483efd5e8663cbc9d476364fb472 (patch)
treee29606f21e89c0edc91f5d01394e44c82e5b7b98 /t/helper/test-strcmp-offset.c
parentGit 2.13.2 (diff)
downloadtgif-5e8d2729ae64483efd5e8663cbc9d476364fb472.tar.xz
wt-status: use separate variable for result of shorten_unambiguous_ref
Store the pointer to the string allocated by shorten_unambiguous_ref in a dedicated variable, short_base, and keep base unchanged. A non-const variable is more appropriate for such an object. It avoids having to cast const away on free and stops redefining the meaning of base, making the code slightly clearer. Signed-off-by: Rene Scharfe <l.s.r@web.de> Reviewed-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-strcmp-offset.c')
0 files changed, 0 insertions, 0 deletions