Use g_strdup instead of ignoring VIR_STRDUP's value

Replace all the occurrences of
  ignore_value(VIR_STRDUP(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 d74067c07b
commit 64023f6d21
53 changed files with 101 additions and 106 deletions
+1 -1
View File
@@ -767,7 +767,7 @@ virTestLogContentAndReset(void)
return NULL;
ret = virBufferContentAndReset(&testLog.buf);
if (!ret)
ignore_value(VIR_STRDUP(ret, ""));
ret = g_strdup("");
return ret;
}