Skip to content

Commit

Permalink
Do not use errno
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-brinda committed Aug 30, 2016
1 parent 5fcc13e commit a5c3001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ int stats_t<T, counter_size, refbase_size>::load_fasta(
constexpr int32_t max_counter_value =
ococo::right_full_mask<T, counter_size>();

if (errno != 0 || fp == nullptr) {
//if (errno != 0 || fp == nullptr) {
if (fp == nullptr) {
ococo::error("File '%s' could not be opened.\n", fasta_fn.c_str());
return -1;
}
Expand Down

0 comments on commit a5c3001

Please sign in to comment.