archive.c: have SP around arithmetic operators

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2013-10-15 15:27:17 -07:00
parent ea6640ec3e
commit b1cdfb54f1

View File

@ -440,7 +440,7 @@ static int match_extension(const char *filename, const char *ext)
* prefix is non-empty (k.e., we don't match .tar.gz with no actual * prefix is non-empty (k.e., we don't match .tar.gz with no actual
* filename). * filename).
*/ */
if (prefixlen < 2 || filename[prefixlen-1] != '.') if (prefixlen < 2 || filename[prefixlen - 1] != '.')
return 0; return 0;
return !strcmp(filename + prefixlen, ext); return !strcmp(filename + prefixlen, ext);
} }