[libvirt] [PATCH] Prefer VIR_STRDUP over virAsprintf(dst, %s, str)

2013-06-07 Thread Michal Privoznik
There's no sense in using virAsprintf() just to duplicate a string. We should use VIR_STRDUP which is designed just for that. --- daemon/libvirtd-config.c | 2 +- src/conf/domain_audit.c | 2 +- src/libxl/libxl_driver.c | 30

Re: [libvirt] [PATCH] Prefer VIR_STRDUP over virAsprintf(dst, %s, str)

2013-06-07 Thread Ján Tomko
On 06/07/2013 04:06 PM, Michal Privoznik wrote: There's no sense in using virAsprintf() just to duplicate a string. We should use VIR_STRDUP which is designed just for that. --- daemon/libvirtd-config.c | 2 +- src/conf/domain_audit.c | 2 +-