glob/glob.c touches this variable when the user passes a pattern with a
trailing slash to wildcard.

regards, Dmitry


diff --git a/src/read.c b/src/read.c
index db1a42d..2e44d5e 100644
--- a/src/read.c
+++ b/src/read.c
@@ -3065,6 +3065,7 @@ parse_file_seq (char **stringp, unsigned int size, int 
stopmap,
   glob_t gl;
   char *tp;
   int findmap = stopmap|MAP_VMSCOMMA|MAP_BLANK|MAP_NUL;
+  gl.gl_offs = 0;
 
   /* Always stop on NUL.  */
   stopmap |= MAP_NUL;

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to