diff options
author | Pierre Joye <pajoye@php.net> | 2011-04-24 22:08:11 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-04-24 22:08:11 +0000 |
commit | be24877c84ed092a37865bcf0f9d7071d8890b52 (patch) | |
tree | 06943dde7cd62e69aea895fa0cd508720b9e6d30 /ext/tidy | |
parent | e575557612f91b4dd438668891cdf18666d369e8 (diff) | |
download | php-git-be24877c84ed092a37865bcf0f9d7071d8890b52.tar.gz |
- fix use of unitiliazed var
Diffstat (limited to 'ext/tidy')
-rw-r--r-- | ext/tidy/tidy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 62453efb57..d5699a3f5b 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -985,10 +985,10 @@ static void php_tidy_create_node(INTERNAL_FUNCTION_PARAMETERS, tidy_base_nodetyp case is_body_node: node = tidyGetBody(obj->ptdoc->doc); break; - } - if (!node) { - RETURN_NULL(); + default: + RETURN_NULL(); + break; } tidy_instanciate(tidy_ce_node, return_value TSRMLS_CC); |