mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Use g_strdup_printf() instead of virAsprintf()
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
@@ -43,9 +43,7 @@ testVerStrParse(const void *data)
|
||||
unsigned long version;
|
||||
int vmware_type;
|
||||
|
||||
if (virAsprintf(&path, "%s/vmwareverdata/%s.txt", abs_srcdir,
|
||||
info->name) < 0)
|
||||
return -1;
|
||||
path = g_strdup_printf("%s/vmwareverdata/%s.txt", abs_srcdir, info->name);
|
||||
|
||||
if (virTestLoadFile(path, &databuf) < 0)
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user