From: Lars Ingebrigtsen Date: Sun, 12 Dec 2021 10:45:11 +0000 (+0100) Subject: Really fix the etags TEX parsing X-Git-Tag: emacs-29.0.90~3597^2~2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=194556425f140b8599467959b73d5954a59128e3;p=emacs.git 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). --- 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 */