summaryrefslogtreecommitdiff
path: root/contrib/fast-import/import-tars.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-01 09:18:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-01 15:02:51 (GMT)
commit0b1fac320c10b83133f824805055ff428b331e19 (patch)
tree18eccf02ed3780acf6253b88040f5f3ad45e6109 /contrib/fast-import/import-tars.perl
parentdcda3614d44bf83aaeb7632353ab668bc689986c (diff)
downloadgit-0b1fac320c10b83133f824805055ff428b331e19.zip
git-0b1fac320c10b83133f824805055ff428b331e19.tar.gz
git-0b1fac320c10b83133f824805055ff428b331e19.tar.bz2
builtin-apply.c: get rid of an unnecessary use of temporary array
Instead of allocating a temporary array imglen[], copying contents to it from another array img->line[], and then using imglen[], use the value from img->line[], whose value does not change during the whole process. This incidentally removes a use of C99 variable length array, which some older compilers apparently are not happy with. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/fast-import/import-tars.perl')
0 files changed, 0 insertions, 0 deletions