mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-12 06:04:46 -05:00
Use g_strdup instead of ignoring VIR_STRDUP_QUIET's value
Replace all the occurrences of ignore_value(VIR_STRDUP_QUIET(a, b)); with a = g_strdup(b); Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
+1
-1
@@ -190,7 +190,7 @@ canonicalize_file_name(const char *path)
|
||||
if ((p = STRSKIP(path, "/some/symlink")))
|
||||
ignore_value(virAsprintfQuiet(&ret, "/gluster%s", p));
|
||||
else
|
||||
ignore_value(VIR_STRDUP_QUIET(ret, path));
|
||||
ret = g_strdup(path);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user