Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
5d603a01
Commit
5d603a01
authored
May 05, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Fixed a segfault when xsltApplyStylesheet() returns error
parent
fb3678b0
Pipeline
#120
passed with stage
in 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/xslt.c
src/xslt.c
+5
-2
No files found.
src/xslt.c
View file @
5d603a01
...
...
@@ -311,9 +311,12 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client)
}
res
=
xsltApplyStylesheet
(
cur
,
doc
,
NULL
);
if
(
xsltSaveResultToString
(
&
string
,
&
len
,
res
,
cur
)
<
0
)
if
(
res
!=
NULL
)
{
if
(
xsltSaveResultToString
(
&
string
,
&
len
,
res
,
cur
)
<
0
)
problem
=
1
;
}
else
{
problem
=
1
;
}
/* lets find out the content type and character encoding to use */
if
(
cur
->
encoding
)
...
...
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