From 38fb0905a6105f0dafe2db1beef8a92271c68f35 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Sep 2009 00:06:17 +0200 Subject: [PATCH] libblkid: minor fix in topology sample Signed-off-by: Karel Zak --- shlibs/blkid/samples/topology.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.39.5