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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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


Reviewed-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux