]> xenbits.xensource.com Git - libvirt.git/commit
security: 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:58 +0000 (12:51 +0200)
commit25d3fc7adaedec8079255e723ef3adabb3235c14
tree835dba1e99466ea5e5841f9e0c551195c56d35db
parent45bf10ba1dd54d28dbf6bb07ea9bbf67d5e0e32d
security: 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/security/security_apparmor.c
src/security/security_dac.c
src/security/security_selinux.c
src/security/virt-aa-helper.c