tb_str: finding the empty string should work in all strings
This commit is contained in:
parent
ff19ced1f4
commit
86cd1ebe17
@ -26,6 +26,8 @@ const char *stristr(const char *arg1, const char *arg2)
|
||||
{
|
||||
const char *a, *b;
|
||||
|
||||
if (!*arg2)
|
||||
return arg1;
|
||||
for(;*arg1;arg1++)
|
||||
{
|
||||
a = arg1;
|
||||
|
Loading…
Reference in New Issue
Block a user