diff options
Diffstat (limited to 'ui-log.c')
-rw-r--r-- | ui-log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -476,7 +476,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern | |||
476 | if (ofs<0) | 476 | if (ofs<0) |
477 | ofs = 0; | 477 | ofs = 0; |
478 | 478 | ||
479 | for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { | 479 | for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; /* nop */) { |
480 | if (show_commit(commit, &rev)) | 480 | if (show_commit(commit, &rev)) |
481 | i++; | 481 | i++; |
482 | free_commit_buffer(commit); | 482 | free_commit_buffer(commit); |
@@ -484,7 +484,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern | |||
484 | commit->parents = NULL; | 484 | commit->parents = NULL; |
485 | } | 485 | } |
486 | 486 | ||
487 | for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; i++) { | 487 | for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; /* nop */) { |
488 | /* | 488 | /* |
489 | * In "follow" mode, we must count the files and lines the | 489 | * In "follow" mode, we must count the files and lines the |
490 | * first time we invoke diff on a given commit, and we need | 490 | * first time we invoke diff on a given commit, and we need |