Merge branch 'master' of git://git.freeswitch.org/freeswitch

This commit is contained in:
Arnaldo Pereira committed 2011-02-03 19:57:25 -02:00
commit 41dc6f46db
62 files changed
+2206 -300

No files matched your search

+7
View File
@@ -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;
}