]> git.eshelyaron.com Git - emacs.git/commitdiff
Really fix the etags TEX parsing
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 12 Dec 2021 10:45:11 +0000 (11:45 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 12 Dec 2021 10:45:11 +0000 (11:45 +0100)
* lib-src/etags.c (TEX_decode_env): Re-fix off-by-one parsing of
TEXTAGS environment variable (bug#52438).

lib-src/etags.c

index af142b0b3d1f50e75f14b162bd16eb070a9ce14d..71f3464661c2283cf82edc6a7cbe89b356414d11 100644 (file)
@@ -5782,9 +5782,9 @@ TEX_decode_env (const char *evarname, const char *defenv)
   else
     env = concat (env, defenv, "");
 
-  /* If the environment variable starts with a colon, increase the
-     length of the token table.  */
-  if (*env == ':')
+  /* If the environment variable doesn't start with a colon, increase
+     the length of the token table.  */
+  if (*env != ':')
     len++;
 
   /* Allocate a token table */