From aacfc5704922d65a6b875c85b17a0cd803a70364 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 6 Nov 2013 12:48:01 +0000 Subject: [PATCH] block: fix find_block_info() by label --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 941e4b8..aa37e24 100644 --- a/block.c +++ b/block.c @@ -520,7 +520,7 @@ static struct blkid_struct_probe* find_block_info(char *uuid, char *label, char if (label) list_for_each_entry(pr, &devices, list) - if (strcmp(pr->label, label)) + if (!strcmp(pr->label, label)) return pr; if (path) -- 2.25.1