make --fast faster

This commit is contained in:
simon987 2020-03-05 12:26:43 -05:00
parent d7cbd5d2b6
commit eab6101cf7

View File

@ -87,7 +87,7 @@ void parse(void *arg) {
int bytes_read = 0;
if (doc.mime == 0) {
if (doc.mime == 0 && !ScanCtx.fast) {
// Get mime type with libmagic
bytes_read = job->vfile.read(&job->vfile, buf, PARSE_BUF_SIZE);
if (bytes_read == -1) {