mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Don't re-cache the filename, but check to see if it already exists
Reported by: jamesgolovich Patch by: jamesgolovich Closes issue #11144 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -818,6 +818,12 @@ static void config_cache_attribute(const char *configfile, enum config_cache_att
|
||||
|
||||
switch (attrtype) {
|
||||
case ATTRIBUTE_INCLUDE:
|
||||
AST_LIST_TRAVERSE(&cfmtime->includes, cfinclude, list) {
|
||||
if (!strcmp(cfinclude->include, filename)) {
|
||||
AST_LIST_UNLOCK(&cfmtime_head);
|
||||
return;
|
||||
}
|
||||
}
|
||||
cfinclude = ast_calloc(1, sizeof(*cfinclude) + strlen(filename) + 1);
|
||||
if (!cfinclude) {
|
||||
AST_LIST_UNLOCK(&cfmtime_head);
|
||||
|
Reference in New Issue
Block a user