From c1ebbe9f9385bf3c45a8baeea4e79e24f7e23aba Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 19 Jul 2013 15:43:37 +0200 Subject: [PATCH] block: ignore probe entries without id --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index ea14248..7d0781e 100644 --- a/block.c +++ b/block.c @@ -327,7 +327,7 @@ static int _cache_load(const char *path) struct blkid_struct_probe *pr = malloc(sizeof(struct blkid_struct_probe)); memset(pr, 0, sizeof(struct blkid_struct_probe)); probe_block(gl.gl_pathv[j], pr); - if (pr->err) + if (pr->err || !pr->id) free(pr); else list_add_tail(&pr->list, &devices); -- 2.25.1