texlive[45735] Build/source/texk/kpathsea: remove redundant test of

commits+karl at tug.org commits+karl at tug.org
Fri Nov 10 01:53:47 CET 2017


Revision: 45735
          http://tug.org/svn/texlive?view=revision&revision=45735
Author:   karl
Date:     2017-11-10 01:53:47 +0100 (Fri, 10 Nov 2017)
Log Message:
-----------
remove redundant test of "found" variable

Modified Paths:
--------------
    trunk/Build/source/texk/kpathsea/ChangeLog
    trunk/Build/source/texk/kpathsea/db.c

Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog	2017-11-10 00:42:00 UTC (rev 45734)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2017-11-10 00:53:47 UTC (rev 45735)
@@ -1,3 +1,8 @@
+2017-11-09  Karl Berry  <karl at 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 at freefriends.org>
 
 	* default.h: document that NULL or empty input path returns the

Modified: trunk/Build/source/texk/kpathsea/db.c
===================================================================
--- trunk/Build/source/texk/kpathsea/db.c	2017-11-10 00:42:00 UTC (rev 45734)
+++ trunk/Build/source/texk/kpathsea/db.c	2017-11-10 00:53:47 UTC (rev 45735)
@@ -772,7 +772,7 @@
               /* 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 */



More information about the tex-live-commits mailing list