mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
Merge branch 'master' of git://git.freeswitch.org/freeswitch
This commit is contained in:
commit
41dc6f46db
62 files changed
+2206
-300
No files matched your search
@@ -1067,9 +1067,16 @@ static const char* channel_get_variable(switch_core_session_t *session, switch_e
|
||||
return variable;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// This is unsafe, I don't see anywhere in the whole code where this is called with NULL session anyway.
|
||||
// There is a new switch_core_get_variable_dup that will strdup it for you and then you must free it.
|
||||
// That messes up the abstraction completely so I am just commenting it out for you.....
|
||||
/*
|
||||
if ((variable = switch_core_get_variable(variable_name))) {
|
||||
return variable;
|
||||
}
|
||||
*/
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user