projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3feb2fc
)
small optimization
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 24 Nov 2006 22:42:44 +0000
(22:42 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 24 Nov 2006 22:42:44 +0000
(22:42 -0000)
libbb/last_char_is.c
patch
|
blob
|
history
diff --git
a/libbb/last_char_is.c
b/libbb/last_char_is.c
index 80a6fe2e4e7be821341e16943f39d6d077a53c10..3616d5916df60f60a91634e35d1ad5e16b614cdc 100644
(file)
--- a/
libbb/last_char_is.c
+++ b/
libbb/last_char_is.c
@@
-15,11
+15,10
@@
*/
char* last_char_is(const char *s, int c)
{
- char *sret;
if (s) {
- s
ret
= strrchr(s, c);
- if (s
ret && !sret
[1])
- return
sret
;
+ s = strrchr(s, c);
+ if (s
&& !s
[1])
+ return
(char*)s
;
}
return NULL;
}