Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
archive.c: have SP around arithmetic operators
author
Junio C Hamano
<gitster@pobox.com>
Tue, 15 Oct 2013 22:27:17 +0000
(15:27 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 16 Oct 2013 17:27:26 +0000
(10:27 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
ea6640e
)
diff --git
a/archive.c
b/archive.c
index 99fadc88d04ea077e5e5d6e6c065f7c54a4eddaf..346f3b2f1ab0d522638475b729274d992d5b82d5 100644
(file)
--- 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);
}