Browse Source

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

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Shawn O. Pearce 19 years ago
parent
commit
08d7e892a7
  1. 3
      fast-import.c

3
fast-import.c

@ -1715,7 +1715,8 @@ int main(int argc, const char **argv) @@ -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");

Loading…
Cancel
Save