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,
|
* data type is specified on its edge, i.e array, bool, integer, string,
|
||||||
* dictionary.
|
* dictionary.
|
||||||
*/
|
*/
|
||||||
static int pkgdb_fd;
|
static int pkgdb_fd = -1;
|
||||||
|
|
||||||
int
|
int
|
||||||
xbps_pkgdb_lock(struct xbps_handle *xhp)
|
xbps_pkgdb_lock(struct xbps_handle *xhp)
|
||||||
|
Loading…
Reference in New Issue
Block a user