]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: use g_strdup in virDomainDiskSet
authorJán Tomko <jtomko@redhat.com>
Sat, 19 Oct 2019 16:41:29 +0000 (18:41 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 21 Oct 2019 10:51:54 +0000 (12:51 +0200)
commitd74067c07be3cdd655a87ceaafdb3005396f7676
tree55d65fc242382e79027d09def558f41cda66ff29
parentcb756a99143a0d5979e3fe0c15b2b87adae4837d
conf: use g_strdup in virDomainDiskSet

Use a temporary variable to allow copying from the
currently set source.

Always return 0 since none of the callers distinguishes
between 0 and 1 propagated from VIR_STRDUP.

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