From: Arnaud Le Blanc Date: Wed, 19 Nov 2008 17:53:47 +0000 (+0000) Subject: CS X-Git-Tag: php-5.3.0alpha2~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=756aef0607eaf4a7b655688ebe0b980144244557;p=php CS --- diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 7230ebd4d4..fb4d12a7de 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -95,8 +95,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; } } /* }}} */