Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Emit the manifest on the right object
Baptiste Daroussin committed 12 years ago
commit 4b5e4650f202c007c03608f26a28abf9725d6815
parent 5107416
1 file changed +3 -3
modified libpkg/pkg_manifest.c
@@ -1004,11 +1004,11 @@ emit_manifest(struct pkg *pkg, char **out, short flags)
	}

	if ((flags & PKG_MANIFEST_EMIT_PRETTY) == PKG_MANIFEST_EMIT_PRETTY)
-
		*out = ucl_object_emit(obj, UCL_EMIT_YAML);
+
		*out = ucl_object_emit(top, UCL_EMIT_YAML);
	else
-
		*out = ucl_object_emit(obj, UCL_EMIT_JSON_COMPACT);
+
		*out = ucl_object_emit(top, UCL_EMIT_JSON_COMPACT);

-
	ucl_object_free(obj);
+
	ucl_object_free(top);

	return (EPKG_OK);
}