summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-12-12 11:45:11 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-12-12 11:45:11 +0100
commit194556425f140b8599467959b73d5954a59128e3 (patch)
tree0ab8245e799509c9610d9301b56d63748bb749d9 /lib-src
parentbdfd83e42d0044db7e99cec452427c0b76d46f20 (diff)
downloademacs-194556425f140b8599467959b73d5954a59128e3.tar.gz
Really fix the etags TEX parsing
* lib-src/etags.c (TEX_decode_env): Re-fix off-by-one parsing of TEXTAGS environment variable (bug#52438).
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index af142b0b3d1..71f3464661c 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -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 */