Skip to content

Commit 60a894b

Browse files
Fix pairaln dummy logic
1 parent 835acb9 commit 60a894b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/pairaln.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,16 @@ int pairaln(int argc, const char **argv, const Command& command) {
245245
output.reserve(100000);
246246
bool hasBacktrace = false;
247247
UniProtConverter converter;
248+
unsigned int minResultDbKey = UINT_MAX;
248249
Matcher::result_t emptyResult(UINT_MAX, 0, 0, 0, 0, 0,
249-
0, UINT_MAX, 0, 0, UINT_MAX, 0, 0, "");
250+
0, UINT_MAX, 0, 0, UINT_MAX, 0, 0, "1M");
250251
#pragma omp for schedule(dynamic, 1)
251252
for (size_t fileNumber = 0; fileNumber < fileToIds.size(); fileNumber++) {
252253
char buffer[1024 + 32768 * 4];
253254
findPair.clear();
254255
taxonToPair.clear();
255256
progress.updateProgress();
256257

257-
unsigned int minResultDbKey = UINT_MAX;
258258
// find intersection between all proteins
259259
for (size_t i = 0; i < fileToIds[fileNumber].size(); i++) {
260260
result.clear();
@@ -285,7 +285,7 @@ int pairaln(int argc, const char **argv, const Command& command) {
285285
prevTaxon = taxon;
286286
}
287287
}
288-
288+
emptyResult.dbKey = minResultDbKey;
289289
// fill taxonToPair vector
290290
std::unordered_map<unsigned int, size_t>::iterator it;
291291
for (it = findPair.begin(); it != findPair.end(); ++it) {

0 commit comments

Comments
 (0)