From: Karel Zak Date: Thu, 17 Sep 2009 22:06:17 +0000 (+0200) Subject: libblkid: minor fix in topology sample X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38fb0905a6105f0dafe2db1beef8a92271c68f35;p=util-linux libblkid: minor fix in topology sample Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/samples/topology.c b/shlibs/blkid/samples/topology.c index c031b82c..7e5b489d 100644 --- a/shlibs/blkid/samples/topology.c +++ b/shlibs/blkid/samples/topology.c @@ -63,12 +63,10 @@ int main(int argc, char *argv[]) else if (rc == 1) warnx("%s: missing topology information", devname); else { - int i, nvals; + int i, nvals = blkid_probe_numof_values(pr); printf("----- NAME=value interface (values: %d):\n", nvals); - nvals = blkid_probe_numof_values(pr); - for (i = 0; i < nvals; i++) { const char *name, *data;