From: Jo-Philipp Wich Date: Wed, 6 Nov 2013 12:48:01 +0000 (+0000) Subject: block: fix find_block_info() by label X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aacfc5704922d65a6b875c85b17a0cd803a70364;p=oweals%2Fubox.git block: fix find_block_info() by label --- 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)