diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index df51f62f74..57d257b498 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -4331,7 +4331,8 @@ SWITCH_STANDARD_APP(conference_function) char *dfile = NULL; 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; } else { toplay = conference->kicked_sound; diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c index dab916e14d..582606d6be 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c @@ -2441,7 +2441,8 @@ static JSBool session_construct(JSContext * cx, JSObject * obj, uintN argc, jsva { struct js_session *jss = NULL; - assert((jss = malloc(sizeof(*jss)))); + jss = malloc(sizeof(*jss)); + assert(jss); memset(jss, 0, sizeof(*jss)); jss->cx = cx; jss->obj = obj;