Browse Source

#17 fix closedir with null pointer bug in toku_get_version_of_logs_on_disk found by injecting open file errors

pull/73/head
Rich Prohaska 13 years ago
parent
commit
6fffcbd536
  1. 2
      ft/logger.cc

2
ft/logger.cc

@ -1473,8 +1473,6 @@ toku_get_version_of_logs_on_disk(const char *log_dir, bool *found_any_logs, uint
highest_version = highest_version > this_log_version ? highest_version : this_log_version;
}
}
}
{
int r2 = closedir(d);
if (r==0) r = r2;
}

Loading…
Cancel
Save