From 22156ebf9c499a2991da235465d905d618e08863 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 18 Apr 2007 19:16:08 +0000 Subject: [PATCH] cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4082 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index c5fbdbf1..6eaee408 100644 --- a/src/files.c +++ b/src/files.c @@ -1990,11 +1990,11 @@ char *real_dir_from_tilde(const char *buf) assert(buf != NULL); if (buf[0] == '~') { - size_t i; + size_t i = 1; char *tilde_dir; /* Figure out how much of the str we need to compare. */ - for (i = 1; buf[i] != '/' && buf[i] != '\0'; i++) + for (; buf[i] != '/' && buf[i] != '\0'; i++) ; /* Get the home directory. */ -- 2.39.5