mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-19 09:44:13 +00:00
reswig
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14557 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
8e0dcb4f21
commit
65de919fc4
2 files changed
+5
-4
No files matched your search
@@ -24282,8 +24282,9 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_log_node_t_userdata_set(void * jarg1,
|
||||
arg1 = (switch_log_node_t *)jarg1;
|
||||
arg2 = (char *)jarg2;
|
||||
{
|
||||
if (arg1->userdata) delete [] arg1->userdata;
|
||||
if (arg2) {
|
||||
arg1->userdata = (char const *) (new char[strlen((const char *)arg2)+1]);
|
||||
arg1->userdata = (char *) (new char[strlen((const char *)arg2)+1]);
|
||||
strcpy((char *)arg1->userdata, (const char *)arg2);
|
||||
} else {
|
||||
arg1->userdata = 0;
|
||||
|
||||
Reference in new issue
Block a user