mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +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) {
|
while(*a && *b) {
|
||||||
if (tolower(*b) == tolower(*a)) {
|
if (tolower(*b) == tolower(*a)) {
|
||||||
if (++x == score) {
|
if (++x == score) {
|
||||||
return p;
|
return b - x + 1;
|
||||||
}
|
}
|
||||||
a++;
|
a++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user