author | Brandon Casey <drafnel@gmail.com> | |
Thu, 27 Aug 2009 16:16:33 +0000 (11:16 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Aug 2009 23:20:53 +0000 (16:20 -0700) | ||
commit | 1630726e849b8b0f1802ad0681b94a64d4851a30 | |
tree | 270b4d7ca086a71c6146f1da32182847dcaecead | tree | snapshot |
parent | b42c9af2cd3dcc56c8aae9a7d73ed1fc342e1f02 | commit | diff |
abspath.c: move declaration of 'len' into inner block and use appropriate type
The 'len' variable was declared at the beginning of the make_absolute_path
function and also in an inner 'if' block which masked the outer declaration.
It is only used in two 'if' blocks, so remove the outer declaration and
make a new declaration inside the other 'if' block that uses 'len'.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The 'len' variable was declared at the beginning of the make_absolute_path
function and also in an inner 'if' block which masked the outer declaration.
It is only used in two 'if' blocks, so remove the outer declaration and
make a new declaration inside the other 'if' block that uses 'len'.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
abspath.c | diff | blob | history |