diff --git a/bin/xbps-checkvers/main.c b/bin/xbps-checkvers/main.c index d7219d83..4818c1fc 100644 --- a/bin/xbps-checkvers/main.c +++ b/bin/xbps-checkvers/main.c @@ -215,7 +215,8 @@ rcv_init(rcv_t *rcv, const char *prog) strncpy(rcv->xhp.rootdir, rcv->rootdir, sizeof(rcv->xhp.rootdir)-1); rcv->xhp.rootdir[sizeof(rcv->xhp.rootdir)-1] = '\0'; } - xbps_init(&rcv->xhp); + if (xbps_init(&rcv->xhp) != 0) + abort(); } static void