changeset 7776:f91e2cf8770b

* etags.c (absolute_filename): Remove infinite loop bug when accessing files in directories whose name begins with a dot.
author Francesco Potortì <pot@gnu.org>
date Fri, 03 Jun 1994 17:10:42 +0000
parents 4c63040423a8
children c48a233494e1
files lib-src/etags.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Fri Jun 03 11:30:57 1994 +0000
+++ b/lib-src/etags.c	Fri Jun 03 17:10:42 1994 +0000
@@ -3250,16 +3250,16 @@
 		    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;