com php-src: Useless check (part of #71753): ext/spl/spl_dlli st.c

From: Date: Thu, 10 Mar 2016 07:43:22 +0000
Subject: com php-src: Useless check (part of #71753): ext/spl/spl_dlli st.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91312@lists.php.net to get a copy of this message
Commit: 753bbad5353c7bfc13e0fd7b65f0824b6a41e5a8 Author: Xinchen Hui <laruence@gmail.com> Thu, 10 Mar 2016 15:43:22 +0800 Parents: a0fac47364c72fd78f2822c1b65c9b8abb58609a Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=753bbad5353c7bfc13e0fd7b65f0824b6a41e5a8 Log: Useless check (part of #71753) Bugs: https://bugs.php.net/71753 Changed paths: M ext/spl/spl_dllist.c Diff: diff --git a/ext/spl/spl_dllist.c b/ext/spl/spl_dllist.c index 4eed914..aa0c6c3 100644 --- a/ext/spl/spl_dllist.c +++ b/ext/spl/spl_dllist.c @@ -156,7 +156,7 @@ static void spl_ptr_llist_destroy(spl_ptr_llist *llist) /* {{{ */ while (current) { next = current->next; - if(current && dtor) { + if (dtor) { dtor(current); } SPL_LLIST_DELREF(current);

« previous php.cvs (#91312) next »