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

Daniel Henrique Barboza danielhb413 at gmail.com
Wed Nov 13 12:15:04 UTC 2019



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 <jtomko at redhat.com>
> ---
>   src/util/virsysinfo.c | 241 ++++++++++++++++++++----------------------
>   1 file changed, 112 insertions(+), 129 deletions(-)
> 

Reviewed-by: Daniel Henrique Barboza <danielhb413 at gmail.com>





More information about the libvir-list mailing list