forked from KolibriOS/kolibrios
SHELL: fix strrchr warning
git-svn-id: svn://kolibrios.org@4001 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
8d5a98295f
commit
624a5c206a
@ -125,16 +125,16 @@ char* strchr(const char* string, int c)
|
||||
|
||||
char* strrchr(const char* string, int c)
|
||||
{
|
||||
int last_found;
|
||||
char* last_found;
|
||||
while (*string)
|
||||
{
|
||||
if (*string==c)
|
||||
{
|
||||
last_found = string;
|
||||
last_found = (char*)string;
|
||||
}
|
||||
string++;
|
||||
}
|
||||
return (char*)last_found;
|
||||
return last_found;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user