diff options
author | Rory Bradford <roryrjb@gmail.com> | 2020-08-02 12:32:14 +0100 |
---|---|---|
committer | Rory Bradford <roryrjb@gmail.com> | 2020-08-02 12:32:14 +0100 |
commit | 69631ff66e5afa6993037b60e2db4348a2f7b718 (patch) | |
tree | cdf124689685d9eebf96bc73d7ad1156d82fb0be /ignore.c | |
parent | 4120bca8530b87747b44efec0552b946b60d657e (diff) | |
download | rf-69631ff66e5afa6993037b60e2db4348a2f7b718.tar.gz |
Various minor improvements
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
Diffstat (limited to 'ignore.c')
-rw-r--r-- | ignore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ignore.c b/ignore.c index b4cef61..d7b6428 100644 --- a/ignore.c +++ b/ignore.c @@ -27,7 +27,7 @@ struct ignores *init_ignores(char *path) { while ((r = getline(&line, &llen, ignore)) != -1) { char *l = calloc(sizeof(char *), strlen(line) - 1); - for (int j = 0, k = 0; j < strlen(line); j++) { + for (size_t j = 0, k = 0; j < strlen(line); j++) { char c = line[j]; if (isspace(c)) { |