fix for MODEVENT-2

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6475 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-12-03 16:06:47 +00:00
parent 7db7234fe4
commit 6f30fe29b2
1 changed files with 6 additions and 1 deletions

View File

@ -682,7 +682,12 @@ static switch_status_t parse_command(listener_t * listener, switch_event_t *even
strip_cr(cmd);
ename = cmd + 9;
if (*ename == '\r' || *ename == '\n') {
while (ename && *ename == '\t' || *ename == ' ') {
++ename;
}
if (ename && (*ename == '\r' || *ename == '\n')) {
ename = NULL;
}