mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
fix return val in switch_stristr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6024 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
592ee146fb
commit
4ff84e46a5
@ -205,7 +205,7 @@ SWITCH_DECLARE(const char *) switch_stristr(const char *str, const char *instr)
|
||||
while(*a && *b) {
|
||||
if (tolower(*b) == tolower(*a)) {
|
||||
if (++x == score) {
|
||||
return p;
|
||||
return b - x + 1;
|
||||
}
|
||||
a++;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user