From: David Lawrence Ramsey Date: Wed, 18 Apr 2007 19:16:08 +0000 (+0000) Subject: cosmetic fix X-Git-Tag: v2.1.0~134 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=60d43339bf2c7fb8866e5bdae7c0bffda7d8280d;p=nano.git cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4082 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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. */