}
db = pkg->db;
+ if (!path) {
+ path = "-";
+ }
+
rc = sqlite3_prepare(db, "select size, content from files where hash = ?", -1, &ifile,0);
if (rc != SQLITE_OK) {
SQLERROR(sqlite3_errmsg(db));
tmpfile, strerror(errno));
sqlite3_finalize(ifile);
sqlite3_close(db);
+ free(tmpfile);
return 0;
}
} else {
}
}
+ free(tmpfile);
return rc;
}