svn commit: trunk/busybox/coreutils

vda at busybox.net vda at busybox.net
Tue Apr 1 16:29:22 UTC 2008


Author: vda
Date: 2008-04-01 09:29:21 -0700 (Tue, 01 Apr 2008)
New Revision: 21616

Log:
basename: tiny shrink



Modified:
   trunk/busybox/coreutils/basename.c


Changeset:
Modified: trunk/busybox/coreutils/basename.c
===================================================================
--- trunk/busybox/coreutils/basename.c	2008-04-01 16:13:14 UTC (rev 21615)
+++ trunk/busybox/coreutils/basename.c	2008-04-01 16:29:21 UTC (rev 21616)
@@ -42,7 +42,7 @@
 		n = strlen(*argv);
 		if ((m > n) && ((strcmp)(s+m-n, *argv) == 0)) {
 			m -= n;
-			s[m] = '\0';
+			/*s[m] = '\0'; - redundant */
 		}
 	}
 




More information about the busybox-cvs mailing list