Commit f2462edf authored by Olaf Hering's avatar Olaf Hering

fix gcc 4.6 warning -Wunused-but-set-variable in rfc1524.c

rfc1524.c: In function 'rfc1524_expand_filename':
rfc1524.c:453:20: warning: variable 'r' set but not used [-Wunused-but-set-variable]
Signed-off-by: Olaf Hering's avatarOlaf Hering <olaf@aepfle.de>
parent 30f7ec7b
......@@ -450,7 +450,7 @@ int rfc1524_expand_filename (char *nametemplate,
char *newfile,
size_t nflen)
{
int i, j, k, ps, r;
int i, j, k, ps;
char *s;
short lmatch = 0, rmatch = 0;
char left[_POSIX_PATH_MAX];
......@@ -518,7 +518,7 @@ int rfc1524_expand_filename (char *nametemplate,
rmatch = 1;
for(r = 0, j = mutt_strlen(oldfile) - 1, k = mutt_strlen(nametemplate) - 1 ;
for(j = mutt_strlen(oldfile) - 1, k = mutt_strlen(nametemplate) - 1 ;
j >= (lmatch ? i : 0) && k >= i + 2;
j--, k--)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment