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:
@@ -188,7 +188,7 @@ canonicalize_file_name(const char *path)
|
||||
char *ret;
|
||||
|
||||
if ((p = STRSKIP(path, "/some/symlink")))
|
||||
ignore_value(virAsprintfQuiet(&ret, "/gluster%s", p));
|
||||
ret = g_strdup_printf("/gluster%s", p);
|
||||
else
|
||||
ret = g_strdup(path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user