lib/pkgdb.c: initialize pkgdb_fd.

otherwise xbps_pkgdb_unlock will always succeed.
This commit is contained in:
Juan RP committed 2019-06-23 11:05:03 +02:00
1 parent 41b2cec356
commit 173c834fc8
1 file changed
+1 -1
+1 -1
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)