summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2007-01-20 12:27:18 +0000
committerNuno Lopes <nlopess@php.net>2007-01-20 12:27:18 +0000
commitf3f2d827dba789b1c4ab7dab6e83e11ef3527994 (patch)
treeab140f6881cd398dd9a6425ef747c730e7fe7d0f /ext/tidy
parent216d041717f86ffc95b0247465c6e2e93842dbd0 (diff)
downloadphp-git-f3f2d827dba789b1c4ab7dab6e83e11ef3527994.tar.gz
fix crash. tests will follow
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/tidy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index adfb4036b2..5c9f5052d3 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -1565,7 +1565,7 @@ static TIDY_NODE_METHOD(hasSiblings)
{
TIDY_FETCH_ONLY_OBJECT;
- if (tidyGetNext(obj->node)) {
+ if (obj->node && tidyGetNext(obj->node)) {
RETURN_TRUE;
} else {
RETURN_FALSE;