Don't crash fast-import if no branch log was requested.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2006-08-27 20:13:44 -04:00
parent 5fced8dc6f
commit 08d7e892a7

View File

@ -1715,7 +1715,8 @@ int main(int argc, const char **argv)
dump_branches();
dump_tags();
dump_marks();
fclose(branch_log);
if (branch_log)
fclose(branch_log);
fprintf(stderr, "%s statistics:\n", argv[0]);
fprintf(stderr, "---------------------------------------------------\n");