]> git.ipfire.org Git - thirdparty/libvirt.git/commit
datatypes: use g_strdup instead of VIR_STRDUP
authorJán Tomko <jtomko@redhat.com>
Sun, 20 Oct 2019 11:49:46 +0000 (13:49 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 21 Oct 2019 10:51:56 +0000 (12:51 +0200)
commit923ab677b22fe2f491f95c8e8eb2e6bfce409936
tree7c61e020b1353e4b0b4eaafe0ca3e75b6daebc9e
parentdf753c85dbb3cebdb231a15126ac0938513ec04d
datatypes: use g_strdup instead of VIR_STRDUP

Replace all occurrences of
  if (VIR_STRDUP(a, b) < 0)
     /* effectively dead code */
with:
  a = g_strdup(b);

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/datatypes.c