CID:1025849 Dereference before null check

This commit is contained in:
Michael Jerris 2014-05-16 18:12:28 +00:00
parent a997331577
commit b10c865c25
1 changed files with 1 additions and 5 deletions

View File

@ -657,11 +657,7 @@ SWITCH_STANDARD_APP(cidlookup_app_function)
switch_bool_t skipurl = SWITCH_FALSE;
switch_bool_t skipcitystate = SWITCH_FALSE;
if (session) {
pool = switch_core_session_get_pool(session);
} else {
switch_core_new_memory_pool(&pool);
}
pool = switch_core_session_get_pool(session);
switch_event_create(&event, SWITCH_EVENT_MESSAGE);
if (!(mydata = switch_core_session_strdup(session, data))) {