]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Break out the loop if duplicate pool is found
authorOsier Yang <jyang@redhat.com>
Sat, 28 Apr 2012 08:18:44 +0000 (16:18 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 30 Apr 2012 13:12:58 +0000 (21:12 +0800)
commit980f12be7221b07e569fed24b372ea00c52d9511
tree872cd39d3836f7a7e60a694eece79b8ce7e2ab00
parent122fa379de44a2fd0a6d5fbcb634535d647ada17
storage: Break out the loop if duplicate pool is found

It doesn't break out the "for" loop even if duplicate pool is
found, and thus the "matchpool" could be overriden as NULL again
if there is different pool afterwards.

To address the problem in libvirt-user list:

https://www.redhat.com/archives/libvirt-users/2012-April/msg00150.html
src/conf/storage_conf.c