cocci: FLEX_ALLOC_MEM to FLEX_ALLOC_STR
authorDenton Liu <liu.denton@gmail.com>
Wed, 3 Apr 2019 22:00:06 +0000 (15:00 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Apr 2019 09:22:30 +0000 (18:22 +0900)
commit0cf2b0a04bb9b48fb0d91f47ce5fd2ea436112c8
treeff9b05a94bd455c1328d0d48fe117330d306b6de
parent577314caae2635986aa30a83ed956c8741d27ffb
cocci: FLEX_ALLOC_MEM to FLEX_ALLOC_STR

Ensure that a FLEX_MALLOC_MEM that uses 'strlen' for its 'len' uses
FLEX_ALLOC_STR instead, since these are equivalent forms.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/coccinelle/flex_alloc.cocci [new file with mode: 0644]