diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-10 00:53:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-10 00:53:47 +0000 |
commit | 35852f3950f9fdf9464d87e7d170fae9d68cd675 (patch) | |
tree | 733f0373901fc781a7bde6ecdc4e6ad9e8fa590e | |
parent | 58a80b148a6b8ba4b527ea4716eb9870f1eaa1c6 (diff) |
remove redundant test of "found" variable
git-svn-id: svn://tug.org/texlive/trunk@45735 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/db.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 0bf640eb329..1acc00dd981 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2017-11-09 Karl Berry <karl@freefriends.org> + + * db.c (kpathsea_db_search_list): remove redundant test of `found'. + From Doug McKenna, personal mail, 7nov17. + 2017-11-03 Karl Berry <karl@freefriends.org> * default.h: document that NULL or empty input path returns the diff --git a/Build/source/texk/kpathsea/db.c b/Build/source/texk/kpathsea/db.c index 8102b94e34a..16d4941d81e 100644 --- a/Build/source/texk/kpathsea/db.c +++ b/Build/source/texk/kpathsea/db.c @@ -772,7 +772,7 @@ kpathsea_db_search_list (kpathsea kpse, string* names, /* If we have a real file, add it to the list, maybe done. */ if (found) { str_list_add (ret, found); - if (!all && found) + if (!all) done = true; } } else { /* no match in the db */ |