projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdfd83e
)
Really fix the etags TEX parsing
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 12 Dec 2021 10:45:11 +0000
(11:45 +0100)
committer
Lars 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
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index af142b0b3d1f50e75f14b162bd16eb070a9ce14d..71f3464661c2283cf82edc6a7cbe89b356414d11 100644
(file)
--- 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 th
e
- length of the token table. */
- if (*env
=
= ':')
+ /* If the environment variable
doesn't start with a colon, increas
e
+
the
length of the token table. */
+ if (*env
!
= ':')
len++;
/* Allocate a token table */