From 194556425f140b8599467959b73d5954a59128e3 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 12 Dec 2021 11:45:11 +0100 Subject: [PATCH] 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). --- lib-src/etags.c | 6 +++--- 1 file 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 */ -- 2.39.5