lib/pkgdb.c: initialize pkgdb_fd.
otherwise xbps_pkgdb_unlock will always succeed.
This commit is contained in:
parent
41b2cec356
commit
173c834fc8
@ -57,7 +57,7 @@
|
||||
* data type is specified on its edge, i.e array, bool, integer, string,
|
||||
* dictionary.
|
||||
*/
|
||||
static int pkgdb_fd;
|
||||
static int pkgdb_fd = -1;
|
||||
|
||||
int
|
||||
xbps_pkgdb_lock(struct xbps_handle *xhp)
|
||||
|
Loading…
Reference in New Issue
Block a user