changeset 32815:811f6ecdb1c4

Simplify condition.
author ib
date Wed, 16 Feb 2011 10:55:38 +0000
parents 607521cb5616
children 180883b8a488
files gui/skin/cut.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/cut.c	Mon Feb 14 18:52:03 2011 +0000
+++ b/gui/skin/cut.c	Wed Feb 16 10:55:38 2011 +0000
@@ -27,10 +27,7 @@
  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';