diff options
Diffstat (limited to 'partx/partx.c')
-rw-r--r-- | partx/partx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/partx/partx.c b/partx/partx.c index fd8e4400c..0c3f8f980 100644 --- a/partx/partx.c +++ b/partx/partx.c @@ -102,7 +102,8 @@ static void assoc_loopdev(const char *fname) { int rc; - loopcxt_init(&lc, 0); + if (loopcxt_init(&lc, 0)) + err(EXIT_FAILURE, _("failed to initialize loopcxt")); rc = loopcxt_find_unused(&lc); if (rc) |