]> err.no Git - util-linux/commitdiff
libblkid: fix probing for binary interface
authorKarel Zak <kzak@redhat.com>
Fri, 18 Sep 2009 11:18:31 +0000 (13:18 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Sep 2009 11:18:31 +0000 (13:18 +0200)
The probing for binary interface has to always start from scratch.

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/probe.c

index 421e9f16545dfd48b6eeeec322d3b7235a299413..05f61cf06123e0627cbd5ca4978ce0181603feb0 100644 (file)
@@ -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);