summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-04-24 22:08:11 +0000
committerPierre Joye <pajoye@php.net>2011-04-24 22:08:11 +0000
commitbe24877c84ed092a37865bcf0f9d7071d8890b52 (patch)
tree06943dde7cd62e69aea895fa0cd508720b9e6d30 /ext/tidy
parente575557612f91b4dd438668891cdf18666d369e8 (diff)
downloadphp-git-be24877c84ed092a37865bcf0f9d7071d8890b52.tar.gz
- fix use of unitiliazed var
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/tidy.c6
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);