summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorDmitry Ivankov <divanorama@gmail.com>2011-06-20 08:22:47 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2011-06-21 10:02:57 (GMT)
commitc5f1fbe7bc6b29f3343a168461ee70816ddebec2 (patch)
tree378bbc256a49756576dd40c24343fede945215d6 /tree.c
parent3ac10b2e3fd6d858621f796160d251ad34affc20 (diff)
downloadgit-c5f1fbe7bc6b29f3343a168461ee70816ddebec2.zip
git-c5f1fbe7bc6b29f3343a168461ee70816ddebec2.tar.gz
git-c5f1fbe7bc6b29f3343a168461ee70816ddebec2.tar.bz2
vcs-svn: do not initialize report_buffer twice
When importing from a dump with deltas, first fast_export_init calls buffer_fdinit, and then init_report_buffer calls fdopen once again when processing the first delta. The second initialization is redundant and leaks a FILE *. Remove the redundant on-demand initialization to fix this. Initializing directly in fast_export_init is simpler and lets the caller pass an int specifying which fd to use instead of hard-coding REPORT_FILENO. Signed-off-by: Dmitry Ivankov <divanorama@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'tree.c')
0 files changed, 0 insertions, 0 deletions