summaryrefslogtreecommitdiff
path: root/archive.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-10-30 12:10:06 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-10-30 12:10:06 -0700
commit0bfc7c10d865697cc59081a4bc55a3add4958be0 (patch)
treed73eda3413bed427be382df53d172de761e0b544 /archive.c
parentMerge branch 'jc/upload-pack-send-symref' (diff)
parentblock-sha1/sha1.c: have SP around arithmetic operators (diff)
downloadtgif-0bfc7c10d865697cc59081a4bc55a3add4958be0.tar.xz
Merge branch 'fc/styles'
C coding style fixes. * fc/styles: block-sha1/sha1.c: have SP around arithmetic operators base85.c: have SP around arithmetic operators archive.c: have SP around arithmetic operators alloc.c: have SP around arithmetic operators abspath.c: have SP around arithmetic operators alias: have SP around arithmetic operators C: have space around && and || operators
Diffstat (limited to 'archive.c')
-rw-r--r--archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive.c b/archive.c
index 99fadc88d0..346f3b2f1a 100644
--- a/archive.c
+++ b/archive.c
@@ -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
* filename).
*/
- if (prefixlen < 2 || filename[prefixlen-1] != '.')
+ if (prefixlen < 2 || filename[prefixlen - 1] != '.')
return 0;
return !strcmp(filename + prefixlen, ext);
}