]> granicus.if.org Git - php/commitdiff
# unnecessary condition here.
authorMoshe Doron <momo@php.net>
Mon, 31 Mar 2003 12:08:31 +0000 (12:08 +0000)
committerMoshe Doron <momo@php.net>
Mon, 31 Mar 2003 12:08:31 +0000 (12:08 +0000)
ext/standard/string.c

index 759c5851b85060f02de37d30402ef3c0081c168d..1f367e08dc3d66234ef46ccbe47a686aee812862 100644 (file)
@@ -2365,12 +2365,7 @@ PHPAPI void php_stripslashes(char *str, int *len TSRMLS_DC)
                                l--;
                        }
                } else {
-                       if (s != t) {
-                               *s++ = *t++;
-                       } else {
-                               s++;
-                               t++;
-                       }
+                       *s++ = *t++;
                        l--;
                }
        }