diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-09-01 02:18:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-09-01 08:02:51 -0700 |
commit | 0b1fac320c10b83133f824805055ff428b331e19 (patch) | |
tree | 18eccf02ed3780acf6253b88040f5f3ad45e6109 /mktag.c | |
parent | builtin-pack-objects.c: avoid vla (diff) | |
download | tgif-0b1fac320c10b83133f824805055ff428b331e19.tar.xz |
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 'mktag.c')
0 files changed, 0 insertions, 0 deletions