Skip to content

Commit ae4c6bb

Browse files
committed
lib: fix xbps_pkgdb_update error return on ENOMEM
1 parent ffefa1f commit ae4c6bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pkgdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ xbps_pkgdb_update(struct xbps_handle *xhp, bool flush, bool update)
321321
xhp->pkgdb = xbps_dictionary_create();
322322
if (!xhp->pkgdb) {
323323
xbps_error_oom();
324-
rv = ENOMEM;
324+
return errno;
325325
}
326326
}
327327
else

0 commit comments

Comments
 (0)