From e9b2b94cd67cc994d1655a1a93a8d88ca6fd5be9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Fri, 3 Jun 1994 17:10:42 +0000 Subject: [PATCH] * etags.c (absolute_filename): Remove infinite loop bug when accessing files in directories whose name begins with a dot. --- lib-src/etags.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index ce54badb3a0..6410c048931 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -3250,16 +3250,16 @@ absolute_filename (file, cwd) return "."; } slashp = cp; + continue; } else if (slashp[2] == '/' || slashp[2] == '\0') { strcpy (slashp, slashp + 2); + continue; } } - else - { - slashp = etags_strchr (slashp + 1, '/'); - } + + slashp = etags_strchr (slashp + 1, '/'); } return res; -- 2.11.4.GIT