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:
@@ -24,9 +24,7 @@ testParseFormatFW(const void *opaque)
|
||||
g_autofree char *expected = NULL;
|
||||
g_autofree char *actual = NULL;
|
||||
|
||||
if (virAsprintf(&path, "%s/qemufirmwaredata/%s",
|
||||
abs_srcdir, filename) < 0)
|
||||
return -1;
|
||||
path = g_strdup_printf("%s/qemufirmwaredata/%s", abs_srcdir, filename);
|
||||
|
||||
if (!(fw = qemuFirmwareParse(path)))
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user