git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
7548842
)
strbuf: miniscule style fix
author
Junio C Hamano
<redacted>
Wed, 13 Jan 2016 23:10:45 +0000
(15:10 -0800)
committer
Junio C Hamano
<redacted>
Thu, 14 Jan 2016 23:05:55 +0000
(15:05 -0800)
We write one SP on each side of an operator, even inside an [] pair
that computes the array index.
Signed-off-by: Junio C Hamano <redacted>
strbuf.c
patch
|
blob
|
history
diff --git
a/strbuf.c
b/strbuf.c
index d76f0aed85c4ec6eafdcfd1a8ee2b22d3d20df96..b165d044ae7f84016bf83839cd6148f8c21f6bca 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-505,8
+505,8
@@
int strbuf_getline(struct strbuf *sb, FILE *fp, int term)
{
if (strbuf_getwholeline(sb, fp, term))
return EOF;
- if (sb->buf[sb->len
-
1] == term)
- strbuf_setlen(sb, sb->len
-
1);
+ if (sb->buf[sb->len
-
1] == term)
+ strbuf_setlen(sb, sb->len
-
1);
return 0;
}
git clone https://git.99rst.org/PROJECT