author | Brandon Casey <casey@nrlssc.navy.mil> | |
Fri, 10 Jul 2009 17:10:43 +0000 (12:10 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 11 Jul 2009 06:50:29 +0000 (23:50 -0700) | ||
commit | 0039ba7e5e630502be9ac601845b214abce93750 | |
tree | 8e01cb139c766643f18e296c21e688b03621bc8c | tree | snapshot |
parent | 20f3749977c0ea48538553dcd85b7cd445d43415 | commit | diff |
unpack-trees.c: work around run-time array initialization flaw on IRIX 6.5
The c99 MIPSpro Compiler version 7.4.4m on IRIX 6.5 does not properly
initialize run-time initialized arrays. An array which is initialized with
fewer elements than the length of the array should have the unitialized
elements initialized to zero. This compiler only initializes the remaining
elements when the last element is a static parameter. So work around it
by adding a "NULL" initialization parameter.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The c99 MIPSpro Compiler version 7.4.4m on IRIX 6.5 does not properly
initialize run-time initialized arrays. An array which is initialized with
fewer elements than the length of the array should have the unitialized
elements initialized to zero. This compiler only initializes the remaining
elements when the last element is a static parameter. So work around it
by adding a "NULL" initialization parameter.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c | diff | blob | history |