From f74f079d9d99fcf91be386f141984c5a36b09bcd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 12:25:58 +0200 Subject: [PATCH] bin/xbps-checkvers/main.c: CID 62673 (unchecked return value) --- bin/xbps-checkvers/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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