Fri Mar 7 11:46:34 EST 2008 Pekka.Pessi@nokia.com
* su_root.c: su_task_execute() now accepts NULL as return_value pointer git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7823 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
35a43bcf56
commit
1073925bb4
|
@ -327,9 +327,14 @@ int su_task_execute(su_task_r const task,
|
|||
int (*function)(void *), void *arg,
|
||||
int *return_value)
|
||||
{
|
||||
int dummy;
|
||||
|
||||
if (function == NULL)
|
||||
return (errno = EFAULT), -1;
|
||||
|
||||
if (return_value == NULL)
|
||||
return_value = &dummy;
|
||||
|
||||
if (!su_port_own_thread(task->sut_port)) {
|
||||
return su_port_execute(task, function, arg, return_value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue