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).
This commit is contained in:
Lars Ingebrigtsen 2021-12-12 11:45:11 +01:00
parent bdfd83e42d
commit 194556425f

View 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 */