Commit 0cf2b0a0 authored by Denton Liu's avatar Denton Liu Committed by Junio C Hamano


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's avatarDenton Liu <>
Signed-off-by: 's avatarJunio C Hamano <>
parent 577314ca
expression str;
identifier x, flexname;
- FLEX_ALLOC_MEM(x, flexname, str, strlen(str));
+ FLEX_ALLOC_STR(x, flexname, str);
expression str;
identifier x, ptrname;
- FLEXPTR_ALLOC_MEM(x, ptrname, str, strlen(str));
+ FLEXPTR_ALLOC_STR(x, ptrname, str);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment