FS-3350 try this

This commit is contained in:
Jeff Lenk 2011-06-16 17:09:26 -05:00
parent fb68746eed
commit 2e1f0b50a8
1 changed files with 4 additions and 2 deletions

View File

@ -554,6 +554,7 @@ static cid_data_t *do_lookup(switch_memory_pool_t *pool, switch_event_t *event,
char *name = NULL; char *name = NULL;
char *url_query = NULL; char *url_query = NULL;
cid_data_t *cid = NULL; cid_data_t *cid = NULL;
cid_data_t *cidtmp = NULL;
switch_bool_t save_cache = SWITCH_FALSE; switch_bool_t save_cache = SWITCH_FALSE;
cid = switch_core_alloc(pool, sizeof(cid_data_t)); cid = switch_core_alloc(pool, sizeof(cid_data_t));
@ -573,8 +574,9 @@ static cid_data_t *do_lookup(switch_memory_pool_t *pool, switch_event_t *event,
} }
if (globals.cache) { if (globals.cache) {
cid = check_cache(pool, number); cidtmp = check_cache(pool, number);
if (cid) { if (cidtmp) {
cid = cidtmp;
cid->src = switch_core_sprintf(pool, "%s (cache)", cid->src); cid->src = switch_core_sprintf(pool, "%s (cache)", cid->src);
goto done; goto done;
} }