svn commit: trunk/busybox/libbb
vda at busybox.net
vda at busybox.net
Fri Nov 24 22:42:45 UTC 2006
Author: vda
Date: 2006-11-24 14:42:44 -0800 (Fri, 24 Nov 2006)
New Revision: 16663
Log:
small optimization
Modified:
trunk/busybox/libbb/last_char_is.c
Changeset:
Modified: trunk/busybox/libbb/last_char_is.c
===================================================================
--- trunk/busybox/libbb/last_char_is.c 2006-11-24 21:55:55 UTC (rev 16662)
+++ trunk/busybox/libbb/last_char_is.c 2006-11-24 22:42:44 UTC (rev 16663)
@@ -15,11 +15,10 @@
*/
char* last_char_is(const char *s, int c)
{
- char *sret;
if (s) {
- sret = strrchr(s, c);
- if (sret && !sret[1])
- return sret;
+ s = strrchr(s, c);
+ if (s && !s[1])
+ return (char*)s;
}
return NULL;
}
More information about the busybox-cvs
mailing list