diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-11 17:26:55 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-11 17:26:55 +0530 |
commit | 7d8a77e59dd18e3cdca1f3c5175693f7c19d07eb (patch) | |
tree | 0e7bc1bb68e9db05d80b54a93b6e57b7bff6a324 /src/util.c | |
parent | 92a27048716239d051bab36bb4e4a89e44e22d4e (diff) |
util/trim: clean up
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -142,12 +142,12 @@ int run(const char *file, char *argv[]) char *trim(char *s) { - size_t end, i; + size_t end = 0; while (isspace(*s)) s++; - for (i = 0, end = 0; s[i]; i++) { + for (size_t i = 0; s[i]; i++) { if (isgraph(s[i])) end = i + 1; } |