[MPlayer-cvslog] r32902 - trunk/gui/skin/cut.c

ib subversion at mplayerhq.hu
Wed Feb 16 11:55:39 CET 2011


Author: ib
Date: Wed Feb 16 11:55:38 2011
New Revision: 32902

Log:
Simplify condition.

Modified:
   trunk/gui/skin/cut.c

Modified: trunk/gui/skin/cut.c
==============================================================================
--- trunk/gui/skin/cut.c	Mon Feb 14 19:52:03 2011	(r32901)
+++ trunk/gui/skin/cut.c	Wed Feb 16 11:55:38 2011	(r32902)
@@ -27,10 +27,7 @@ void cutItemString( char * in,char * out
  for ( c=0,n=0,i=0;i<strlen( in );i++ )
   {
    if ( in[i] == sep ) n++;
-   if ( n >= num && in[i] != sep )
-   {
-     if ( c + 1 < maxout ) out[c++] = in[i];
-   }
+   if ( n >= num && in[i] != sep && c + 1 < maxout ) out[c++] = in[i];
    if ( n >= num && in[i+1] == sep ) break;
   }
   if ( c < maxout ) out[c] = '\0';


More information about the MPlayer-cvslog mailing list