summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/cnf.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-03 22:50:57 +0000
committerKarl Berry <karl@freefriends.org>2017-11-03 22:50:57 +0000
commitd280e23580526277e20890e40d6551dd390851f4 (patch)
treeabbed1ab83338c075cdc54ae076526266f590a20 /Build/source/texk/kpathsea/cnf.c
parent753ccf29ee3c32686dbe1cb4ada792d0f26ec429 (diff)
checks for empty program name, empty default strings
git-svn-id: svn://tug.org/texlive/trunk@45684 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/cnf.c')
-rw-r--r--Build/source/texk/kpathsea/cnf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/cnf.c b/Build/source/texk/kpathsea/cnf.c
index e216a18d172..b8d4a9c69ac 100644
--- a/Build/source/texk/kpathsea/cnf.c
+++ b/Build/source/texk/kpathsea/cnf.c
@@ -1,6 +1,7 @@
/* cnf.c: read config files.
- Copyright 1994, 1995, 1996, 1997, 2008, 2009, 2011, 2012, 2016 Karl Berry.
+ Copyright 1994, 1995, 1996, 1997, 2008, 2009, 2011, 2012, 2016,
+ 2017 Karl Berry.
Copyright 1997-2005 Olaf Weber.
This library is free software; you can redistribute it and/or
@@ -105,7 +106,7 @@ do_line (kpathsea kpse, string line)
while (ISSPACE (*line))
line++;
start = line;
- while (!ISSPACE (*line) && *line != '=')
+ while (*line && !ISSPACE (*line) && *line != '=')
line++;
/* It's annoying to repeat all this, but making a tokenizing