Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix warning from gcc 4.7
Baptiste Daroussin committed 12 years ago
commit 20bdcabb3983944d6a1bb3af99b4cc968e52901a
parent fb5aa0b
1 file changed +3 -2
modified libpkg/update.c
@@ -581,7 +581,7 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
	sqlite3 *sqlite = NULL;
	struct pkg *pkg = NULL;
	int rc = EPKG_FATAL;
-
	const char *origin, *digest, *offset, *length, *files_offset;
+
	const char *origin, *digest, *offset, *length;
	struct pkgdb_it *it = NULL;
	char *linebuf = NULL, *p;
	int updated = 0, removed = 0, added = 0, processed = 0;
@@ -640,7 +640,8 @@ pkg_update_incremental(const char *name, struct pkg_repo *repo, time_t *mtime)
		origin = strsep(&p, ":");
		digest = strsep(&p, ":");
		offset = strsep(&p, ":");
-
		files_offset = strsep(&p, ":");
+
		/* files offset */
+
		strsep(&p, ":");
		length = strsep(&p, ":");

		if (origin == NULL || digest == NULL ||