From 7d8a77e59dd18e3cdca1f3c5175693f7c19d07eb Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 11 Jul 2024 17:26:55 +0530 Subject: util/trim: clean up --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/util.c b/src/util.c index ab2d5a0..2a81670 100644 --- a/src/util.c +++ b/src/util.c @@ -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; } -- cgit v1.2.3