projects
/
platform
/
upstream
/
libxslt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6621ece
)
fixed potential crash incase of a bad stylesheet
author
Igor Zlatkovic
<igor@src.gnome.org>
Sat, 31 May 2003 15:44:23 +0000
(15:44 +0000)
committer
Igor Zlatkovic
<igor@src.gnome.org>
Sat, 31 May 2003 15:44:23 +0000
(15:44 +0000)
libxslt/xslt.c
patch
|
blob
|
history
diff --git
a/libxslt/xslt.c
b/libxslt/xslt.c
index
2750921
..
5bc3863
100644
(file)
--- a/
libxslt/xslt.c
+++ b/
libxslt/xslt.c
@@
-1983,12
+1983,14
@@
xsltParseStylesheetImportedDoc(xmlDocPtr doc) {
xsltFreeStylesheet(ret);
ret = NULL;
}
- if (ret->errors != 0) {
- ret->doc = NULL;
- xsltFreeStylesheet(ret);
- ret = NULL;
+ if (ret != NULL) {
+ if (ret->errors != 0) {
+ ret->doc = NULL;
+ xsltFreeStylesheet(ret);
+ ret = NULL;
+ }
}
-
+
return(ret);
}