[Freeswitch-svn] [commit] r7823 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su
Freeswitch SVN
mikej at freeswitch.org
Fri Mar 7 12:45:14 EST 2008
Author: mikej
Date: Fri Mar 7 12:45:14 2008
New Revision: 7823
Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_root.c
Log:
Fri Mar 7 11:46:34 EST 2008 Pekka.Pessi at nokia.com
* su_root.c: su_task_execute() now accepts NULL as return_value pointer
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_root.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_root.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_root.c Fri Mar 7 12:45:14 2008
@@ -327,9 +327,14 @@
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);
}
More information about the Freeswitch-svn
mailing list