Skip to content

Commit 8227df4

Browse files
author
Paul Dreik
committed
#60 fix problem when using minfilsize and ignoreempty at the same time
1 parent 90f57aa commit 8227df4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Options.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "config.h" //header file from autoconf, must come first to make large file support work properly
22

3+
#include <algorithm>
34
#include <iostream>
45
#include <limits>
56

@@ -106,7 +107,8 @@ parseOptions(Parser& parser)
106107
o.resultsfile = parser.get_parsed_string();
107108
} else if (parser.try_parse_bool("-ignoreempty")) {
108109
if (parser.get_parsed_bool()) {
109-
o.minimumfilesize = 1;
110+
o.minimumfilesize =
111+
std::max(Fileinfo::filesizetype{ 1 }, o.minimumfilesize);
110112
} else {
111113
o.minimumfilesize = 0;
112114
}

0 commit comments

Comments
 (0)