diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-04-17 16:16:33 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-04-17 16:16:33 +0200 |
commit | 8e4eb29210cfefd01ce797e1818df86b3fe2dce6 (patch) | |
tree | 341e1c246cb34fb737a8f91058c883fbcc8aad29 /stagit.c | |
parent | 394d90b7bb878b54173a08bfe31402ddd29a2a54 (diff) |
writeblobhtml: minor style fix
using len instead of the loop 'i' is slightly more clear
Diffstat (limited to 'stagit.c')
-rw-r--r-- | stagit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -395,7 +395,7 @@ writeblobhtml(FILE *fp, const git_blob *blob) prev = i + 1; } /* trailing data */ - if ((i - prev) > 0) { + if ((len - prev) > 0) { n++; fprintf(fp, nfmt, n, n, n); xmlencode(fp, &s[prev], len - prev); |