Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix a wrong warning from gcc on recent stable and current
Baptiste Daroussin committed 13 years ago
commit d4283a3121aa90b14cfd7ebab0fd45e3cf612da2
parent 5ae2e03
1 file changed +3 -0
modified libpkg/backup.c
@@ -70,6 +70,9 @@ copy_database(sqlite3 *src, sqlite3 *dst, const char *name)
	assert(src != NULL);
	assert(dst != NULL);

+
	/* Do not remove until gcc has gone from FreeBSD base */
+
	done = total = 0;
+

	ret = sqlite3_exec(dst, "PRAGMA main.locking_mode=EXCLUSIVE;"
			   "BEGIN IMMEDIATE;COMMIT;", NULL, NULL, &errmsg);
	if (ret != SQLITE_OK) {