lib/pkgdb.c: initialize pkgdb_fd.

otherwise xbps_pkgdb_unlock will always succeed.
This commit is contained in:
Juan RP 2019-06-23 11:05:03 +02:00
parent 41b2cec356
commit 173c834fc8
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -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)