aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
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;
}