]> xenbits.xensource.com Git - libvirt.git/commit
virstorage: 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)
commit5a101469fcc53c7d61865c7a6a40bae9c69e82ce
tree9781cf9d96bd3d2d664d76184a954459337f5268
parent7d9f7e1731811d474079eee28cfbc835ce9e232f
virstorage: 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/util/virstorageencryption.c
src/util/virstoragefile.c