diff options
| author | Felipe Pena <felipe@php.net> | 2011-11-15 15:16:20 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2011-11-15 15:16:20 +0000 |
| commit | 236120d80e266dc40d9542486fc31e0f8e0b9344 (patch) | |
| tree | 342ff4ef8ee01a77df4136ce589260bbaff77fa6 /ext/tidy/tidy.c | |
| parent | fa4f7411a39251b657290de09255b50fd82d93c1 (diff) | |
| download | php-git-236120d80e266dc40d9542486fc31e0f8e0b9344.tar.gz | |
- Fixed bug #54682 (Tidy::diagnose() NULL pointer dereference)
Diffstat (limited to 'ext/tidy/tidy.c')
| -rw-r--r-- | ext/tidy/tidy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 1ba910c957..d06bbcdb2e 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -1336,7 +1336,7 @@ static PHP_FUNCTION(tidy_diagnose) { TIDY_FETCH_OBJECT; - if (tidyRunDiagnostics(obj->ptdoc->doc) >= 0) { + if (tidyStatus(obj->ptdoc->doc) != 0 && tidyRunDiagnostics(obj->ptdoc->doc) >= 0) { tidy_doc_update_properties(obj TSRMLS_CC); RETURN_TRUE; } |
