]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Remove unnecessary checks in virSecurityLabelDefsParseXML
authorJohn Ferlan <jferlan@redhat.com>
Thu, 7 Mar 2019 16:06:28 +0000 (11:06 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 7 Mar 2019 17:04:58 +0000 (12:04 -0500)
commitbf72ee049e92fc5b7d123971c7f6f1afecc38a41
treea64d6e0d54ec7acf8f2ec93573fe652ca065e844
parent14b6a1854fb4c02c5fb2f51679f8ff099f28f53c
conf: Remove unnecessary checks in virSecurityLabelDefsParseXML

Failure would have occurred for @ctxt before in callers' other
virXPath calls and @def derefs.

Found by Coverity due to commit 66a508d2 using VIR_XPATH_NODE_AUTORESTORE
to access @ctxt before the if condition. The @def was noted by review.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c