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

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Shawn O. Pearce 2006-08-27 20:13:44 -04:00
parent 5fced8dc6f
commit 08d7e892a7
1 changed files with 2 additions and 1 deletions

View File

@ -1715,6 +1715,7 @@ int main(int argc, const char **argv)
dump_branches(); dump_branches();
dump_tags(); dump_tags();
dump_marks(); dump_marks();
if (branch_log)
fclose(branch_log); fclose(branch_log);


fprintf(stderr, "%s statistics:\n", argv[0]); fprintf(stderr, "%s statistics:\n", argv[0]);