[MPlayer-cvslog] r38003 - trunk/configure

al subversion at mplayerhq.hu
Fri Nov 3 02:15:52 EET 2017


Author: al
Date: Fri Nov  3 02:15:52 2017
New Revision: 38003

Log:
configure: Remove useless line in helper function contains_item

When writing the function, I initially wanted to special case
the empty list case and just early return.

Turns out there is no need to do this. Additionally I checked
that "for x in ; do echo body ; done" is defined in POSIX and
will not execute the loop's body.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Fri Nov  3 00:20:45 2017	(r38002)
+++ trunk/configure	Fri Nov  3 02:15:52 2017	(r38003)
@@ -1583,7 +1583,6 @@ echores "$_list_subparts"
 # a white space separated list (1st arg)
 # has an item with the given value (2nd arg)
 contains_item() {
-  test "$1" || false
   for item in $1; do
     test "$item" = "$2" && return
   done


More information about the MPlayer-cvslog mailing list