On Tue, 11/24 12:47, Paolo Bonzini wrote: > > > On 24/11/2015 06:21, Fam Zheng wrote: > > + if (bs->file && *file == bs->file->bs && > > This check is unnecessary, just use "if (file)".
"file" would be bs in the case of protocol, and this function will infinitely recurse. Fam