Re: [PATCH] Use g_steal_pointer where possible

2021-03-01 Thread Ján Tomko
On a Tuesday in 2021, Ján Tomko wrote: On a Tuesday in 2021, Kristina Hanicova wrote: [...] 21 files changed, 45 insertions(+), 90 deletions(-) Reviewed-by: Ján Tomko Now pushed. Jano signature.asc Description: PGP signature

Re: [PATCH] Use g_steal_pointer where possible

2021-02-23 Thread Ján Tomko
On a Tuesday in 2021, Kristina Hanicova wrote: Via coccinelle (not the hanbag!) s/hanbag/handbag/ spatches used: @ rule1 @ identifier a, b; symbol NULL; @@ - b = a; ... when != a - a = NULL; + b = g_steal_pointer(); @@ - *b = a; ... when != a - a = NULL; + *b = g_steal_pointer();

[PATCH] Use g_steal_pointer where possible

2021-02-23 Thread Kristina Hanicova
Via coccinelle (not the hanbag!) spatches used: @ rule1 @ identifier a, b; symbol NULL; @@ - b = a; ... when != a - a = NULL; + b = g_steal_pointer(); @@ - *b = a; ... when != a - a = NULL; + *b = g_steal_pointer(); Signed-off-by: Kristina Hanicova --- src/admin/admin_server.c