From: Arnaud Le Blanc Date: Wed, 19 Nov 2008 17:54:24 +0000 (+0000) Subject: CS X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=085b11a8cbad9d5eb5aaeee903a19a9e4e952de3;p=php CS --- diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 5209df270a..d04888667d 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -96,8 +96,8 @@ static void spl_array_rewind(spl_array_object *intern TSRMLS_DC); static void spl_array_update_pos(spl_array_object* intern) /* {{{ */ { - Bucket *pos; - if ((pos = intern->pos)) { + Bucket *pos = intern->pos; + if (pos != NULL) { intern->pos_h = pos->h; } } /* }}} */