On 13/10/16 14:50, Patrik Flykt wrote:
On Tue, 2016-10-04 at 12:31 +0300, Slava Monich wrote:
> Concatenating the patterns makes more sense than using the last
> supplied value and leaking the previous allocated patterns.
> src/main.c | 15 ++++++++++++---
> 1 file changed, 12 insertions(+), 3 deletions(-)
This feature exists in a different form already. By separating the
argument strings with either ':', ',' or ' ', multiple patterns
specified. This happens in __connman_log_init().
I know. I just noticed that multiple -d leak memory. Also, repeatable
options allow to do something like OPTS+=" -d foo" in a script. I
thought it was worth a patch.
In any case, this patch was later superseded by the patch from Daniel
Wagner, so never mind.