]> xenbits.xensource.com Git - libvirt.git/commit
xenDaemonDomainSetAutostart: avoid appearance of impropriety
authorJim Meyering <meyering@redhat.com>
Wed, 17 Feb 2010 21:14:25 +0000 (22:14 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 19 Feb 2010 10:52:04 +0000 (11:52 +0100)
commit37ce5600c0bb1aed9e2f2888922388de4340ebd3
treeeb1776a968ef64902fc097271eb92e3d610b474d
parente52687e88fa167232cd8c314016fa9084fee72b2
xenDaemonDomainSetAutostart: avoid appearance of impropriety

* src/xen/xend_internal.c (xenDaemonDomainSetAutostart): Rewrite to
avoid dereferencing the result of sexpr_lookup.  While in this
particular case, it was guaranteed never to be NULL, due to the
preceding "if sexpr_node(...)" guard, it's cleaner to skip the
sexpr_node call altogether, and also saves a lookup.
src/xen/xend_internal.c