summaryrefslogtreecommitdiff
path: root/main/output.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-15 21:06:39 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-15 21:06:39 +0400
commit16d3d5dc536bc461bb6aa88d640efb123ae9fdf4 (patch)
tree982d518d7ffac8f6ed5e72ed242d1b41fd7006f2 /main/output.c
parent19f6476d197353acb74a2fa0a459afa830a4da6d (diff)
downloadphp-git-16d3d5dc536bc461bb6aa88d640efb123ae9fdf4.tar.gz
Fixed wrong comparisons
Diffstat (limited to 'main/output.c')
-rw-r--r--main/output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/output.c b/main/output.c
index d33e418277..2531dee2ab 100644
--- a/main/output.c
+++ b/main/output.c
@@ -645,15 +645,15 @@ PHPAPI int php_output_handler_reverse_conflict_register(const char *name, size_t
return FAILURE;
}
- if (SUCCESS == (rev_ptr = zend_hash_str_find_ptr(&php_output_handler_reverse_conflicts, name, name_len))) {
+ if (NULL != (rev_ptr = zend_hash_str_find_ptr(&php_output_handler_reverse_conflicts, name, name_len))) {
return zend_hash_next_index_insert_ptr(rev_ptr, check_func) ? SUCCESS : FAILURE;
} else {
zend_hash_init(&rev, 8, NULL, NULL, 1);
- if (SUCCESS != zend_hash_next_index_insert_ptr(&rev, check_func)) {
+ if (NULL == zend_hash_next_index_insert_ptr(&rev, check_func)) {
zend_hash_destroy(&rev);
return FAILURE;
}
- if (SUCCESS != zend_hash_str_update_mem(&php_output_handler_reverse_conflicts, name, name_len+1, &rev, sizeof(HashTable))) {
+ if (NULL == zend_hash_str_update_mem(&php_output_handler_reverse_conflicts, name, name_len+1, &rev, sizeof(HashTable))) {
zend_hash_destroy(&rev);
return FAILURE;
}