From: Karel Zak Date: Fri, 18 Sep 2009 11:18:31 +0000 (+0200) Subject: libblkid: fix probing for binary interface X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=958757bbd7e27adc092e037c3012ee26e1b09a0a;p=util-linux libblkid: fix probing for binary interface The probing for binary interface has to always start from scratch. Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/probe.c b/shlibs/blkid/src/probe.c index 421e9f16..05f61cf0 100644 --- a/shlibs/blkid/src/probe.c +++ b/shlibs/blkid/src/probe.c @@ -254,6 +254,7 @@ void *blkid_probe_get_binary_data(blkid_probe pr, struct blkid_chain *chn) return NULL; pr->cur_chain = chn; + chn->idx = -1; /* start probing from scratch */ chn->binary = TRUE; rc = chn->driver->probe(pr, chn);