]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: 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:57 +0000 (12:51 +0200)
commit4d81b800e2ad6c26756fa6be5441f55044005784
treeffc05b2fbdef105f2df0aebf7b713f69a7e854c3
parent380bc1bec745848eec9ee7b7a4404acca3c785c1
network: 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/network/bridge_driver.c
src/network/leaseshelper.c