writeblobhtml: minor style fix
using len instead of the loop 'i' is slightly more clear
This commit is contained in:
parent
394d90b7bb
commit
8e4eb29210
1 changed files with 1 additions and 1 deletions
2
stagit.c
2
stagit.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue