Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
102
Issues
102
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
b49c99eb
Commit
b49c99eb
authored
Jul 09, 2018
by
Marvin Scholz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce unnecessary config locks in XSLT loader
parent
72b77502
Pipeline
#250
failed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/xslt.c
src/xslt.c
+5
-4
No files found.
src/xslt.c
View file @
b49c99eb
...
@@ -269,10 +269,12 @@ static xmlDocPtr custom_loader(const xmlChar *URI,
...
@@ -269,10 +269,12 @@ static xmlDocPtr custom_loader(const xmlChar *URI,
/* In case a top stylesheet is loaded */
/* In case a top stylesheet is loaded */
case
XSLT_LOAD_START
:
case
XSLT_LOAD_START
:
config
=
config_get_config
();
/* Check if the admin URI is already cached */
if
(
admin_URI
!=
NULL
)
{
break
;
}
/* Check if we need to load the admin path */
config
=
config_get_config
();
if
(
!
admin_URI
)
{
/* Append path separator to path */
/* Append path separator to path */
size_t
len
=
strlen
(
config
->
adminroot_dir
);
size_t
len
=
strlen
(
config
->
adminroot_dir
);
xmlChar
*
admin_path
=
xmlMalloc
(
len
+
2
);
xmlChar
*
admin_path
=
xmlMalloc
(
len
+
2
);
...
@@ -287,7 +289,6 @@ static xmlDocPtr custom_loader(const xmlChar *URI,
...
@@ -287,7 +289,6 @@ static xmlDocPtr custom_loader(const xmlChar *URI,
}
else
{
}
else
{
ICECAST_LOG_DEBUG
(
"Loaded and cached admin_URI
\"
%s
\"
"
,
admin_URI
);
ICECAST_LOG_DEBUG
(
"Loaded and cached admin_URI
\"
%s
\"
"
,
admin_URI
);
}
}
}
config_release_config
();
config_release_config
();
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment