summaryrefslogtreecommitdiff
path: root/t/t3910-mac-os-precompose.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-06-25 10:01:04 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-29 10:46:16 -0700
commit76d8d45ffbc2cee911a66bdc5b6280a00da1a555 (patch)
treed29755913b4f57e9b56c5c50374d83e7a934af74 /t/t3910-mac-os-precompose.sh
parent*.[ch] refactoring: make use of the FREE_AND_NULL() macro (diff)
downloadtgif-76d8d45ffbc2cee911a66bdc5b6280a00da1a555.tar.xz
coccinelle: polish FREE_AND_NULL rules
There are two rules for using FREE_AND_NULL in free.cocci, one for pointer types and one for expressions. Both cause coccinelle to remove empty lines and even newline characters between replacements for some reason; consecutive "free(x);/x=NULL;" sequences end up as multiple FREE_AND_NULL calls on the same time. Remove the type rule, as the expression rule already covers it, and rearrange the lines of the latter to place the addition of FREE_AND_NULL between the removals, which causes coccinelle to leave surrounding whitespace untouched. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3910-mac-os-precompose.sh')
0 files changed, 0 insertions, 0 deletions