Re: [PATCH] test-dir-iterator: use path argument directly

2019-08-07 Thread Derrick Stolee
On 8/7/2019 7:15 AM, René Scharfe wrote: > Avoid allocating and leaking a strbuf for holding a verbatim copy of the > path argument and pass the latter directly to dir_iterator_begin() > instead. > > Signed-off-by: René Scharfe > --- > This test helper was added after v2.22.0 (2019-06-07) by 1507

[PATCH] test-dir-iterator: use path argument directly

2019-08-07 Thread René Scharfe
Avoid allocating and leaking a strbuf for holding a verbatim copy of the path argument and pass the latter directly to dir_iterator_begin() instead. Signed-off-by: René Scharfe --- This test helper was added after v2.22.0 (2019-06-07) by 150791adbf (dir-iterator: add tests for dir-iterator API, 2