bin/xbps-checkvers/main.c: CID 62673 (unchecked return value)
This commit is contained in:
parent
66292180a3
commit
f74f079d9d
@ -215,7 +215,8 @@ rcv_init(rcv_t *rcv, const char *prog)
|
|||||||
strncpy(rcv->xhp.rootdir, rcv->rootdir, sizeof(rcv->xhp.rootdir)-1);
|
strncpy(rcv->xhp.rootdir, rcv->rootdir, sizeof(rcv->xhp.rootdir)-1);
|
||||||
rcv->xhp.rootdir[sizeof(rcv->xhp.rootdir)-1] = '\0';
|
rcv->xhp.rootdir[sizeof(rcv->xhp.rootdir)-1] = '\0';
|
||||||
}
|
}
|
||||||
xbps_init(&rcv->xhp);
|
if (xbps_init(&rcv->xhp) != 0)
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user