Skip to content

Commit c73e94b

Browse files
committed
lint
1 parent 9c3e5d8 commit c73e94b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libr/cons/grep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,9 +1202,9 @@ R_API int r_cons_grep_line(char *buf, int len) {
12021202
if (use_tok && grep->tokens_count > 0) {
12031203
// dynamic tokens selection: pick only specified columns
12041204
char *save_ptr2 = NULL;
1205-
size_t tok_idx = 0;
1205+
size_t k, tok_idx = 0;
12061206
while ((tok = r_str_tok_r (tok_idx? NULL: in, delims, &save_ptr2))) {
1207-
for (size_t k = 0; k < grep->tokens_count; k++) {
1207+
for (k = 0; k < grep->tokens_count; k++) {
12081208
if ((size_t)grep->tokens[k] == tok_idx) {
12091209
const size_t toklen = strlen (tok);
12101210
memcpy (out + outlen, tok, toklen);

0 commit comments

Comments
 (0)