Re: [libvirt] [PATCH 3/9] Remove VIR_STRNDUP usage that subtracts from a non-NULL pointer

2019-11-13 Thread Daniel Henrique Barboza
On 11/12/19 2:02 PM, Ján Tomko wrote: Use g_strndup in all the cases where we check upfront whether a pointer is non-NULL and then use it to calculate the copied length. Signed-off-by: Ján Tomko --- src/util/virsysinfo.c | 241 -- 1 file changed,

[libvirt] [PATCH 3/9] Remove VIR_STRNDUP usage that subtracts from a non-NULL pointer

2019-11-12 Thread Ján Tomko
Use g_strndup in all the cases where we check upfront whether a pointer is non-NULL and then use it to calculate the copied length. Signed-off-by: Ján Tomko --- src/util/virsysinfo.c | 241 -- 1 file changed, 112 insertions(+), 129 deletions(-) diff