summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
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 */