From: Junio C Hamano Date: Tue, 1 Sep 2009 09:18:29 +0000 (-0700) Subject: builtin-apply.c: get rid of an unnecessary use of temporary array X-Git-Tag: v1.6.5-rc0~13 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0b1fac320c10b83133f824805055ff428b331e19?hp=0b1fac320c10b83133f824805055ff428b331e19 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 ---