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:
Ján Tomko
2019-10-21 12:51:55 +02:00
parent 64023f6d21
commit ea5bb994cb
8 changed files with 23 additions and 24 deletions
+1 -1
View File
@@ -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;
}