Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix possible use uninitialized variables
Baptiste Daroussin committed 11 years ago
commit 5385648a4fef2cca94cd00e6e7f164fd8666bc8d
parent 528f544
1 file changed +3 -0
modified libpkg/pkg_config.c
@@ -697,6 +697,9 @@ pkg_init(const char *path, const char *reposdir)
	ucl_object_iter_t it = NULL;
	struct sbuf *ukey = NULL;

+
	k = NULL;
+
	o = NULL;
+

	pkg_get_myarch(myabi, BUFSIZ);
	if (parsed != false) {
		pkg_emit_error("pkg_init() must only be called once");