Commit 6fffcbd5 authored by Rich Prohaska's avatar Rich Prohaska

#17 fix closedir with null pointer bug in toku_get_version_of_logs_on_disk...

#17 fix closedir with null pointer bug in toku_get_version_of_logs_on_disk found by injecting open file errors
parent ea76d4d3
...@@ -1473,8 +1473,6 @@ toku_get_version_of_logs_on_disk(const char *log_dir, bool *found_any_logs, uint ...@@ -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; highest_version = highest_version > this_log_version ? highest_version : this_log_version;
} }
} }
}
{
int r2 = closedir(d); int r2 = closedir(d);
if (r==0) r = r2; if (r==0) r = r2;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment