From: Jo-Philipp Wich Date: Fri, 19 Jul 2013 13:43:37 +0000 (+0200) Subject: block: ignore probe entries without id X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c1ebbe9f9385bf3c45a8baeea4e79e24f7e23aba;p=oweals%2Fubox.git block: ignore probe entries without id --- 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);