Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix trivial errors reporting by clang
Baptiste Daroussin committed 14 years ago
commit aae0b8053559659d82f5c566aabe175e141496df
parent b88b56f
2 files changed +2 -3
modified libpkg/packing.c
@@ -29,6 +29,7 @@ packing_init(struct packing **pack, const char *path, pkg_formats format)

	if ((*pack = calloc(1, sizeof(struct packing))) == NULL) {
		EMIT_ERRNO("malloc", "");
+
		return (EPKG_FATAL);
	}

	(*pack)->aread = archive_read_disk_new();
modified pkg/update.c
@@ -99,12 +99,10 @@ update_from_remote_repo(const char *name, const char *url)
	struct archive_entry *ae;
	char repofile[MAXPATHLEN];
	char *tmp = NULL;
-
	int retcode = EPKG_OK;

	tmp = mktemp(strdup("/tmp/repo.txz.XXXXXX"));

	if (pkg_fetch_file(url, tmp) != EPKG_OK) {
-
		retcode = EPKG_FATAL;
		unlink(tmp);
		free(tmp);
		return (EPKG_FATAL);
@@ -132,5 +130,5 @@ update_from_remote_repo(const char *name, const char *url)
	unlink(tmp);
	free(tmp);

-
	return(retcode);
+
	return (EPKG_OK);
}