]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: 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)
commita0bb1369295347466eb6d2f6b01310fbe50cbc1b
tree7b23f51ae95ff81ebaf5638db5b940e7990b55f4
parent7f1f0453fc9ccd8c6271d5f73a08b892962299e6
nwfilter: 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/nwfilter/nwfilter_dhcpsnoop.c
src/nwfilter/nwfilter_driver.c