don't do operations in an assert (re: FSCORE-50)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5985 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
299ab4ba85
commit
a45f8065d7
|
@ -4331,7 +4331,8 @@ SWITCH_STANDARD_APP(conference_function)
|
||||||
char *dfile = NULL;
|
char *dfile = NULL;
|
||||||
|
|
||||||
if (conference->sound_prefix) {
|
if (conference->sound_prefix) {
|
||||||
assert((dfile = switch_mprintf("%s/%s", conference->sound_prefix, conference->kicked_sound)));
|
dfile = switch_mprintf("%s/%s", conference->sound_prefix, conference->kicked_sound);
|
||||||
|
assert(dfile);
|
||||||
toplay = dfile;
|
toplay = dfile;
|
||||||
} else {
|
} else {
|
||||||
toplay = conference->kicked_sound;
|
toplay = conference->kicked_sound;
|
||||||
|
|
|
@ -2441,7 +2441,8 @@ static JSBool session_construct(JSContext * cx, JSObject * obj, uintN argc, jsva
|
||||||
{
|
{
|
||||||
struct js_session *jss = NULL;
|
struct js_session *jss = NULL;
|
||||||
|
|
||||||
assert((jss = malloc(sizeof(*jss))));
|
jss = malloc(sizeof(*jss));
|
||||||
|
assert(jss);
|
||||||
memset(jss, 0, sizeof(*jss));
|
memset(jss, 0, sizeof(*jss));
|
||||||
jss->cx = cx;
|
jss->cx = cx;
|
||||||
jss->obj = obj;
|
jss->obj = obj;
|
||||||
|
|
Loading…
Reference in New Issue